nextcloud/apps/dav/tests/integration/Db/PropertyMapperTest.php
Ferdinand Thiessen d6d6747a73 refactor: apply rector rules for PHPUnit 10
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-27 21:56:04 +01:00

38 lines
753 B
PHP

<?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;
#[\PHPUnit\Framework\Attributes\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);
}
}