Skip to content

Commit

Permalink
Fix all broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 15, 2019
1 parent 010b097 commit 6127157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Bridge/Symfony/Messenger/DataPersisterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function testHandle()
$dummy = new Dummy();

$messageBus = $this->prophesize(MessageBusInterface::class);
$messageBus->dispatch($dummy)->willReturn(new Envelope($dummy, new HandledStamp($dummy, 'DummyHandler::__invoke')))->shouldBeCalled();
$messageBus->dispatch($dummy)->willReturn(new Envelope($dummy, [new HandledStamp($dummy, 'DummyHandler::__invoke')]))->shouldBeCalled();

$dataPersister = new DataPersister($this->prophesize(ResourceMetadataFactoryInterface::class)->reveal(), $messageBus->reveal());
$this->assertSame($dummy, $dataPersister->persist($dummy));
Expand Down
4 changes: 2 additions & 2 deletions tests/Security/EventListener/DenyAccessListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface;
use Symfony\Component\Security\Core\Role\RoleHierarchy;

/**
* @author Kévin Dunglas <[email protected]>
Expand Down Expand Up @@ -268,7 +268,7 @@ private function getLegacyListener(ResourceMetadataFactoryInterface $resourceMet
{
$authenticationTrustResolverProphecy = $this->prophesize(AuthenticationTrustResolverInterface::class);

$roleHierarchyInterfaceProphecy = $this->prophesize(RoleHierarchyInterface::class);
$roleHierarchyInterfaceProphecy = $this->prophesize(RoleHierarchy::class);
$roleHierarchyInterfaceProphecy->getReachableRoles(Argument::type('array'))->willReturn([]);

$tokenProphecy = $this->prophesize(TokenInterface::class);
Expand Down

0 comments on commit 6127157

Please sign in to comment.