diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-20 23:40:42 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-21 13:36:50 +0100 |
commit | 1773a27fe29f07bc0ef4f24088f9c1dc5a470b52 (patch) | |
tree | 9328c556578755de31b0e97f0a16724ed98e6a07 /tests/unit | |
parent | 4e500dd1a91008c54e8560a6e35f38530edb52bb (diff) |
search in lower case and ignore weird whitespace
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/controller/ItemControllerTest.php | 2 | ||||
-rw-r--r-- | tests/unit/db/ItemMapperTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/controller/ItemControllerTest.php b/tests/unit/controller/ItemControllerTest.php index a58a907df..72c6d38f0 100644 --- a/tests/unit/controller/ItemControllerTest.php +++ b/tests/unit/controller/ItemControllerTest.php @@ -275,7 +275,7 @@ class ItemControllerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue($result['items'])); $response = $this->controller->index(FeedType::FEED, 2, 3, - 0, null, null, 'test%20search'); + 0, null, null, 'test%20%20search%20'); $this->assertEquals($result, $response); } diff --git a/tests/unit/db/ItemMapperTest.php b/tests/unit/db/ItemMapperTest.php index de8e0226f..8b42aebb8 100644 --- a/tests/unit/db/ItemMapperTest.php +++ b/tests/unit/db/ItemMapperTest.php @@ -380,7 +380,7 @@ class ItemMapperTest extends \OCA\News\Tests\Unit\Db\MapperTestUtility { public function testFindAllSearch(){ $sql = 'AND `items`.`id` < ? '; - $search = ['%test_\\', 'a']; + $search = ['%tEst_\\', 'a']; $params = [$this->user, '%\%test\\_\\\\%', '%a%', $this->offset]; $sql = $this->makeSelectQueryStatus($sql, $this->status, false, $search); $this->setMapperResult($sql, $params, $this->rows, $this->limit); |