diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-01-16 11:00:22 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-02-11 10:49:59 +0100 |
commit | 32afdcbefec5793fb28162c456919d2b0be5cfe9 (patch) | |
tree | 335ab595a80fb3d26fb3fe967c60b4383f00b4f3 /tests | |
parent | 20bfbb0fd9316be0cbba9c2202a9b45ce7eea7f8 (diff) | |
download | nextcloud-server-32afdcbefec5793fb28162c456919d2b0be5cfe9.tar.gz nextcloud-server-32afdcbefec5793fb28162c456919d2b0be5cfe9.zip |
Inject logger
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/share/searchresultsorter.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/share/searchresultsorter.php b/tests/lib/share/searchresultsorter.php index f24e40ea059..efc3e1b7aa3 100644 --- a/tests/lib/share/searchresultsorter.php +++ b/tests/lib/share/searchresultsorter.php @@ -37,4 +37,11 @@ class Test_Share_Search extends \PHPUnit_Framework_TestCase { $this->assertTrue($result[2]['foobar'] === 'Bicyclerepairwoman'); $this->assertTrue($result[3]['foobar'] === 'woot'); } + + /** + * @expectedException PHPUnit_Framework_Error + */ + public function testSortWrongLog() { + $sorter = new \OC\Share\SearchResultSorter('foo', 'bar', 'UTF-8', 'foobar'); + } } |