/** * {@inheritdoc} * * @since 2.0 */ protected function setUp() { parent::setUp(); $article = new Article(); $article->rebuildTable(); $articleComment = new ArticleComment(); $articleComment->rebuildTable(); }
/** * 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(); }
/** * 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'); }