mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
fix: Adapt ViewTest to ['path'] being absolute
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
842b3f9e0a
commit
397454ff4a
1 changed files with 4 additions and 4 deletions
|
|
@ -414,8 +414,8 @@ class ViewTest extends \Test\TestCase {
|
|||
foreach ($results as $result) {
|
||||
$paths[] = $result['path'];
|
||||
}
|
||||
$this->assertContains('/anotherstorage/folder/bar.txt', $paths);
|
||||
$this->assertContains('/bar.txt', $paths);
|
||||
$this->assertContains('/folder/anotherstorage/folder/bar.txt', $paths);
|
||||
$this->assertContains('/folder/bar.txt', $paths);
|
||||
|
||||
$results = $folderView->search('foo');
|
||||
$this->assertCount(2, $results);
|
||||
|
|
@ -423,8 +423,8 @@ class ViewTest extends \Test\TestCase {
|
|||
foreach ($results as $result) {
|
||||
$paths[] = $result['path'];
|
||||
}
|
||||
$this->assertContains('/anotherstorage/foo.txt', $paths);
|
||||
$this->assertContains('/anotherstorage/foo.png', $paths);
|
||||
$this->assertContains('/folder/anotherstorage/foo.txt', $paths);
|
||||
$this->assertContains('/folder/anotherstorage/foo.png', $paths);
|
||||
|
||||
$this->assertCount(6, $rootView->searchByMime('text'));
|
||||
$this->assertCount(3, $folderView->searchByMime('text'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue