You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/apps/dav/tests/integration/Db/PropertyMapperTest.php

40 lines
729 B

<?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);
}
}