ILIAS  release_8 Revision v8.23
ilCtrlExistingPathTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /* Copyright (c) 2021 Thibeau Fuhrer <thf@studer-raimann.ch> Extended GPL, see docs/LICENSE */
6 
7 require_once __DIR__ . '/ilCtrlPathTestBase.php';
8 
15 {
16  public function testExistingPathWithString(): void
17  {
18  $path = new ilCtrlExistingPath($this->structure, 'foo');
19  $this->assertEquals('foo', $path->getCidPath());
20  }
21 
22  public function testExistingPathWithEmptyString(): void
23  {
24  $path = new ilCtrlExistingPath($this->structure, '');
25  $this->assertNull($path->getCidPath());
26  }
27 }
$path
Definition: ltiservices.php:32
Class ilCtrlPathTestBase.
Class ilCtrlExistingPathTest.
Class ilCtrlExistingPath.