ILIAS  release_8 Revision v8.24
ilCtrlExistingPathTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 2021 Thibeau Fuhrer <thf@studer-raimann.ch> Extended GPL, see docs/LICENSE */
6
7require_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}
Class ilCtrlExistingPathTest.
Class ilCtrlExistingPath.
Class ilCtrlPathTestBase.
$path
Definition: ltiservices.php:32