public function setUp() { $this->setApplicationConfig(include __DIR__ . '/../../../../test.application.config.php'); parent::setUp(); $this->documentManager = $this->getApplicationServiceLocator()->get('doctrine.odm.documentmanager.default'); static::$staticDcumentManager = $this->documentManager; if (!static::$dbDataCreated) { TestData::create($this->documentManager); static::$dbDataCreated = true; } }
public function removeAction() { TestData::remove($this->serviceLocator->get('doctrine.odm.documentmanager.default')); return; }