fix: Adapt ViewTest to ['path'] being absolute

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-03-10 12:34:50 +01:00
parent 842b3f9e0a
commit 397454ff4a
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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'));