PropertyMapperTest.php 719 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\DAV\Tests\integration\Db;
  8. use OCA\DAV\Db\PropertyMapper;
  9. use Test\TestCase;
  10. /**
  11. * @group DB
  12. */
  13. class PropertyMapperTest extends TestCase {
  14. /** @var PropertyMapper */
  15. private PropertyMapper $mapper;
  16. protected function setUp(): void {
  17. parent::setUp();
  18. $this->mapper = \OC::$server->get(PropertyMapper::class);
  19. }
  20. public function testFindNonExistent(): void {
  21. $props = $this->mapper->findPropertyByPathAndName(
  22. 'userthatdoesnotexist',
  23. 'path/that/does/not/exist/either',
  24. 'nope',
  25. );
  26. self::assertEmpty($props);
  27. }
  28. }