0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-06 06:50:39 +00:00
nextcloud_server/apps/dav/tests/integration/Db/PropertyMapperTest.php
Côme Chilliet 64863c9d46
chore: Apply new rector configuration to apps folder
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-13 11:46:42 +01:00

40 lines
729 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;
/**
* @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);
}
}