nextcloud/apps/dav/tests/integration/Db/PropertyMapperTest.php
Carl Schwan 11cf69d8ba
fix(psalm): Fix static analysis issues in apps/*/tests
There are still 1200 more to fix before we can enable static analysis
for the tests.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-01-16 12:00:51 +01:00

38 lines
759 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(name: '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);
}
}