public function setUp()
{
$user1 = new \Doctrine\Tests\Models\CMS\CmsUser();
$user1->username = "beberlei";
$user1->status = "active";
$user1->name = "Benjamin";
$user2 = new \Doctrine\Tests\Models\CMS\CmsUser();
$user2->username = "lsmith";
$user2->status = "active";
$user2->name = "Lukas";
$article1 = new \Doctrine\Tests\Models\CMS\CmsArticle();
$article1->text = "Foo";
$article1->topic = "Foo";
$article1->setAuthor($user1);
$article2 = new \Doctrine\Tests\Models\CMS\CmsArticle();
$article2->text = "Foo";
$article2->topic = "Foo";
$article2->setAuthor($user1);
$this->dm = $this->createDocumentManager();
$this->dm->persist($user1);
$this->dm->persist($user2);
$this->dm->persist($article1);
$this->dm->persist($article2);
$this->dm->flush();
$this->dm->clear();
$this->articleIds = array($article1->id, $article2->id);
$this->userIds = array($user1->id, $user2->id);
}