summaryrefslogtreecommitdiffstats
path: root/tests/unit/db/ItemMapperTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-03-20 23:40:42 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 13:36:50 +0100
commit1773a27fe29f07bc0ef4f24088f9c1dc5a470b52 (patch)
tree9328c556578755de31b0e97f0a16724ed98e6a07 /tests/unit/db/ItemMapperTest.php
parent4e500dd1a91008c54e8560a6e35f38530edb52bb (diff)
search in lower case and ignore weird whitespace
Diffstat (limited to 'tests/unit/db/ItemMapperTest.php')
-rw-r--r--tests/unit/db/ItemMapperTest.php2
1 files changed, 1 insertions, 1 deletions
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);