public function testSetContent() { $this->assertEquals(3, $this->getConnection()->getRowCount('text_story')); $article = new \FelixOnline\Core\Article(1); $article->setContent('Foo bar'); $this->assertEquals(4, $this->getConnection()->getRowCount('text_story')); $manager = \FelixOnline\Core\BaseManager::build('\\FelixOnline\\Core\\Text', 'text_story'); $text = $manager->filter('content = "Foo bar"')->one(); $this->assertEquals($text->getId(), $article->getText1()->getId()); }