A free, self-hostable news aggregator…
Add search default raw value
Alexis Degrugillier50b6a02578c2
diff --git a/app/Models/Search.php b/app/Models/Search.phpindex a22e242af..85340ff13 100644--- a/app/Models/Search.php+++ b/app/Models/Search.php@@ -11,7 +11,7 @@ require_once(LIB_PATH . '/lib_date.php');class FreshRSS_Search {// This contains the user input string- private $raw_input;+ private $raw_input = '';// The following properties are extracted from the raw inputprivate $intitle;private $min_date;diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.phpindex 20ea09433..9e3ca6765 100644--- a/tests/app/Models/SearchTest.php+++ b/tests/app/Models/SearchTest.php@@ -10,7 +10,7 @@ class SearchTest extends \PHPUnit_Framework_TestCase {*/public function test__construct_whenInputIsEmpty_getsOnlyNullValues($input) {$search = new FreshRSS_Search($input);- $this->assertNull($search->getRawInput());+ $this->assertEquals('', $search->getRawInput());$this->assertNull($search->getIntitle());$this->assertNull($search->getMinDate());$this->assertNull($search->getMaxDate());