protected function tearDown() { if ($this->cache) { $this->cache->clear(); } parent::tearDown(); }
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); }
protected function setUp() { parent::setUp(); $this->identityMap = $this->mongator->getRepository('Model\\Article')->getIdentityMap(); $this->query = new \Model\ArticleQuery($this->mongator->getRepository('Model\\Article')); }
public function setUp() { parent::setUp(); $this->factory = new Factory($this->mongator, $this->faker); $this->instance = new Config($this->factory, 'Model\\Article'); }