diff options
Diffstat (limited to 'apps/dav/tests/integration/Db/PropertyMapperTest.php')
-rw-r--r-- | apps/dav/tests/integration/Db/PropertyMapperTest.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/apps/dav/tests/integration/Db/PropertyMapperTest.php b/apps/dav/tests/integration/Db/PropertyMapperTest.php new file mode 100644 index 00000000000..9bd47a82d35 --- /dev/null +++ b/apps/dav/tests/integration/Db/PropertyMapperTest.php @@ -0,0 +1,40 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace OCA\DAV\Tests\integration\Db; + +use OCA\DAV\Db\PropertyMapper; +use OCP\Server; +use Test\TestCase; + +/** + * @group DB + */ +class PropertyMapperTest extends TestCase { + + /** @var PropertyMapper */ + private PropertyMapper $mapper; + + protected function setUp(): void { + parent::setUp(); + + $this->mapper = Server::get(PropertyMapper::class); + } + + public function testFindNonExistent(): void { + $props = $this->mapper->findPropertyByPathAndName( + 'userthatdoesnotexist', + 'path/that/does/not/exist/either', + 'nope', + ); + + self::assertEmpty($props); + } + +} |