summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/controller/ItemControllerTest.php2
-rw-r--r--tests/unit/db/ItemMapperTest.php2
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);