diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-20 14:46:41 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-21 13:36:50 +0100 |
commit | c0dda27f2078de4c3adcf345383ba423c233fe9f (patch) | |
tree | 4592a28928027d32f4c90bcfd9b10efe3706fe62 /tests | |
parent | 953b030e2678ce45d2f182c181ef2190f39d161d (diff) |
also decode html entities
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/db/ItemTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/db/ItemTest.php b/tests/unit/db/ItemTest.php index 719e8d5da..ec92eb4d9 100644 --- a/tests/unit/db/ItemTest.php +++ b/tests/unit/db/ItemTest.php @@ -188,12 +188,12 @@ class ItemTest extends \PHPUnit_Framework_TestCase { public function testSearchIndex() { $item = new Item(); - $item->setBody('<a>somEthing</a>'); + $item->setBody('<a>somEthäng</a>'); $item->setUrl('http://link'); - $item->setAuthor('author'); - $item->setTitle('<a>title</a>'); + $item->setAuthor('äuthor'); + $item->setTitle('<a>tätle</a>'); $item->generateSearchIndex(); - $expected = 'somethingauthortitlehttp://link'; + $expected = 'somethängäuthortätlehttp://link'; $this->assertEquals($expected, $item->getSearchIndex()); } |