public function testSearchIndex() { $item = new Item(); $item->setBody('<a>somEthäng</a>'); $item->setUrl('http://link'); $item->setAuthor('äuthor'); $item->setTitle('<a>tätle</a>'); $item->generateSearchIndex(); $expected = 'somethängäuthortätlehttp://link'; $this->assertEquals($expected, $item->getSearchIndex()); }