Exemple #1
0
 protected function tearDown()
 {
     if ($this->cache) {
         $this->cache->clear();
     }
     parent::tearDown();
 }
Exemple #2
0
 public function setUp()
 {
     parent::setUp();
     $this->dispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher');
     $this->mongator->setEventDispatcher($this->dispatcher);
 }
 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);
 }
Exemple #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'));
 }
Exemple #7
0
 public function setUp()
 {
     parent::setUp();
     $this->factory = new Factory($this->mongator, $this->faker);
     $this->instance = new Config($this->factory, 'Model\\Article');
 }