public function setUp()
 {
     parent::setUp();
     $this->adapter = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\AdapterInterface');
     $this->conflictResolver = new AutoIncrementConflictResolver($this->adapter->reveal());
     $this->uriContext = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContext');
 }
 public function setUp()
 {
     parent::setUp();
     $this->slugifier = $this->prophesize('Symfony\\Cmf\\Bundle\\CoreBundle\\Slugifier\\SlugifierInterface');
     $this->article = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Tests\\Resources\\Fixtures\\Article');
     $this->uriContext = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContext');
     $this->provider = new ContentDateTimeProvider($this->slugifier->reveal());
 }
 public function setUp()
 {
     parent::setUp();
     $this->subjectObject = new \stdClass();
     for ($i = 1; $i <= 3; $i++) {
         $this->{'autoRoute' . $i} = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Model\\AutoRouteInterface');
         $this->{'uriContext' . $i} = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContext');
         $this->{'uriContext' . $i}->getAutoRoute()->willReturn($this->{'autoRoute' . $i});
     }
     $this->uriContextCollection = new UriContextCollection($this->subjectObject);
 }
 public function setUp()
 {
     parent::setUp();
     $this->metadataFactory = $this->prophesize('Metadata\\MetadataFactoryInterface');
     $this->metadata = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Mapping\\ClassMetadata');
     $this->driver = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\AdapterInterface');
     $this->serviceRegistry = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\ServiceRegistry');
     $this->tokenProvider = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\TokenProviderInterface');
     $this->uriContext = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContext');
     $this->uriGenerator = new UriGenerator($this->metadataFactory->reveal(), $this->driver->reveal(), $this->serviceRegistry->reveal());
 }
 public function setUp()
 {
     parent::setUp();
     $this->adapter = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\AdapterInterface');
     $this->uriContextCollection = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContextCollection');
     $this->route1 = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Model\\AutoRouteInterface');
     $this->route2 = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Model\\AutoRouteInterface');
     $this->route3 = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Model\\AutoRouteInterface');
     $this->route4 = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Model\\AutoRouteInterface');
     $this->subjectObject = new \stdClass();
     $this->handler = new LeaveRedirectDefunctRouteHandler($this->adapter->reveal());
 }
 public function setUp()
 {
     parent::setUp();
     $this->metadataFactory = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Mapping\\MetadataFactory');
     $this->adapter = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\AdapterInterface');
     $this->serviceRegistry = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\ServiceRegistry');
     $this->uriContextCollection = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContextCollection');
     $this->metadata = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Mapping\\ClassMetadata');
     $this->delegatedHandler = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\DefunctRouteHandlerInterface');
     $this->subjectObject = new \stdClass();
     $this->delegatingDefunctRouteHandler = new DelegatingDefunctRouteHandler($this->metadataFactory->reveal(), $this->adapter->reveal(), $this->serviceRegistry->reveal(), $this->uriContextCollection->reveal());
 }
 public function setUp()
 {
     parent::setUp();
     $this->dm = $this->prophet->prophesize('Doctrine\\ODM\\PHPCR\\DocumentManager');
     $this->metadataFactory = $this->prophet->prophesize('Doctrine\\ODM\\PHPCR\\Mapping\\ClassMetadataFactory');
     $this->metadata = $this->prophet->prophesize('Doctrine\\ODM\\PHPCR\\Mapping\\ClassMetadata');
     $this->contentDocument = new \stdClass();
     $this->contentDocument2 = new \stdClass();
     $this->baseNode = new \stdClass();
     $this->parentRoute = new \stdClass();
     $this->route = $this->prophet->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Model\\AutoRouteInterface');
     $this->phpcrSession = $this->prophet->prophesize('PHPCR\\SessionInterface');
     $this->phpcrRootNode = $this->prophet->prophesize('PHPCR\\NodeInterface');
     $this->baseRoutePath = '/test';
     $this->adapter = new PhpcrOdmAdapter($this->dm->reveal(), $this->baseRoutePath);
 }
 public function setUp()
 {
     parent::setUp();
     $this->locator = $this->prophet->prophesize('Symfony\\Component\\Config\\FileLocatorInterface');
     $this->loader = new XmlFileLoader($this->locator->reveal());
 }
 public function setUp()
 {
     parent::setUp();
     $this->factory = new MetadataFactory();
 }
 public function setUp()
 {
     parent::setUp();
     $this->conflictResolver = new ThrowExceptionConflictResolver();
     $this->uriContext = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContext');
 }
 public function setUp()
 {
     parent::setUp();
     $this->uriContext = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\UriContext');
     $this->provider = new ContentLocaleProvider();
 }
Example #12
0
 public function setUp()
 {
     parent::setUp();
     $this->subjectObject = new \stdClass();
     $this->autoRoute = $this->prophesize('Symfony\\Cmf\\Component\\RoutingAuto\\Model\\AutoRouteInterface');
 }