Example #1
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $this->dispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher');
     $this->mongator->setEventDispatcher($this->dispatcher);
 }
Example #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->repository = $this->mongator->getRepository('Model\\Article');
     $this->indexManager = new IndexManager($this->repository);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->repository = $this->mongator->getRepository('Model\\FieldTypeExamples');
 }
 public function setUp()
 {
     parent::setUp();
     $this->factory = new Factory($this->mongator, $this->faker);
 }
Example #6
0
 protected function setUp()
 {
     parent::setUp();
     $this->identityMap = $this->mongator->getRepository('Model\\Article')->getIdentityMap();
     $this->query = new \Model\ArticleQuery($this->mongator->getRepository('Model\\Article'));
 }
Example #7
0
 public function setUp()
 {
     parent::setUp();
     $this->factory = new Factory($this->mongator, $this->faker);
     $this->instance = new Config($this->factory, 'Model\\Article');
 }