ProophTest\ServiceBus\Container\Plugin\Guard\RouteGuardFactoryTest::it_creates_route_guard PHP Метод

it_creates_route_guard() публичный Метод

    public function it_creates_route_guard()
    {
        $authorizationService = $this->prophesize(AuthorizationService::class);
        $container = $this->prophesize(ContainerInterface::class);
        $container->get(AuthorizationService::class)->willReturn($authorizationService->reveal());
        $factory = new RouteGuardFactory();
        $guard = $factory($container->reveal());
        $this->assertInstanceOf(RouteGuard::class, $guard);
    }