Skip to content

A free, self-hostable news aggregator…

Add a test to verify if the search input is stored correctly

Alexis Degrugillier964e67d4a491
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php
index 6ddfc0370..20ea09433 100644
--- a/tests/app/Models/SearchTest.php
+++ b/tests/app/Models/SearchTest.php
@@ -230,6 +230,7 @@ class SearchTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals($max_pubdate_value, $search->getMaxPubdate());
$this->assertEquals($tags_value, $search->getTags());
$this->assertEquals($search_value, $search->getSearch());
+ $this->assertEquals($input, $search->getRawInput());
}
public function provideMultipleSearch() {