예제 #1
0
 protected function teardown()
 {
     $config = ConfigProvider::getInstance();
     $config->set('app.root', '');
     $config->set('app.file.store.dir', '/tmp/');
     parent::teardown();
 }
예제 #2
0
 /**
  * {@inheritdoc}
  *
  * @since 2.0
  */
 protected function tearDown()
 {
     parent::tearDown();
     $article = new Article();
     $article->dropTable();
     $articleComment = new ArticleComment();
     $articleComment->dropTable();
 }
예제 #3
0
 /**
  * Set up tests.
  *
  * @since 2.0
  */
 protected function setUp()
 {
     parent::setUp();
     $denum = new DEnum();
     $denum->rebuildTable();
     $item = new DEnumItem();
     $item->rebuildTable();
     $this->denum = new DEnum('Article::section');
     $item->set('DEnumID', $this->denum->getOID());
     $item->set('value', 'Test');
     $item->save();
 }
예제 #4
0
 /**
  * Set up tests.
  *
  * @since 2.0
  */
 protected function setUp()
 {
     parent::setUp();
     $tag = new Tag();
     $tag->rebuildTable();
     $denum = new DEnum();
     $denum->rebuildTable();
     $item = new DEnumItem();
     $item->rebuildTable();
     $article = new Article();
     $article->rebuildTable();
     $denum = new DEnum('Alpha\\Model\\Article::section');
     $item->set('DEnumID', $denum->getOID());
     $item->set('value', 'Test');
     $item->save();
     $this->DEnumID = $denum->getOID();
     $this->article = $this->createArticle('unitTestArticle');
 }