mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
There are still 1200 more to fix before we can enable static analysis for the tests. Signed-off-by: Carl Schwan <carlschwan@kde.org>
38 lines
759 B
PHP
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);
|
|
}
|
|
|
|
}
|