mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
Merge branch 'fixes' of https://github.com/NaofumiHonda/SearchDAV into fixes
fix again
This commit is contained in:
commit
34860b2154
1 changed files with 7 additions and 0 deletions
|
|
@ -549,6 +549,13 @@ class SearchPluginTest extends \PHPUnit_Framework_TestCase {
|
||||||
$this->searchBackend->expects($this->never())
|
$this->searchBackend->expects($this->never())
|
||||||
->method('search');
|
->method('search');
|
||||||
|
|
||||||
|
$this->searchBackend->expects($this->any())
|
||||||
|
->method('getPropertyDefinitionsForScope')
|
||||||
|
->willReturn([
|
||||||
|
new SearchPropertyDefinition('{http://ns.nextcloud.com:}fileid', false, true, true, SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER),
|
||||||
|
new SearchPropertyDefinition('{DAV:}getcontentlength', true, true, true, SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER),
|
||||||
|
]);
|
||||||
|
|
||||||
$plugin->searchHandler($request, $response);
|
$plugin->searchHandler($request, $response);
|
||||||
|
|
||||||
$this->assertEquals(400, $response->getStatus());
|
$this->assertEquals(400, $response->getStatus());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue