‪TYPO3CMS  10.4
FileMountTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
20 
24 class ‪FileMountTest extends UnitTestCase
25 {
29  protected ‪$subject;
30 
31  protected function ‪setUp(): void
32  {
33  parent::setUp();
34  $this->subject = new ‪FileMount();
35  }
36 
41  {
42  self::assertSame('', $this->subject->getTitle());
43  }
44 
48  public function ‪setTitleSetsTitle()
49  {
50  $title = 'foobar mount';
51  $this->subject->setTitle($title);
52  self::assertSame($title, $this->subject->getTitle());
53  }
54 
58  public function ‪setDescriptionSetsDescription()
59  {
60  $description = 'This is the foobar mount, used for foo and bar';
61  $this->subject->setDescription($description);
62  self::assertSame($description, $this->subject->getDescription());
63  }
64 
69  {
70  self::assertSame('', $this->subject->getPath());
71  }
72 
76  public function ‪setPathSetsPath()
77  {
78  $path = 'foo/bar/';
79  $this->subject->setPath($path);
80  self::assertSame($path, $this->subject->getPath());
81  }
82 
87  {
88  self::assertFalse($this->subject->getIsAbsolutePath());
89  }
90 
95  {
96  $this->subject->setIsAbsolutePath(true);
97  self::assertTrue($this->subject->getIsAbsolutePath());
98  }
99 }
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\setUp
‪setUp()
Definition: FileMountTest.php:30
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\getIsAbsolutePathInitiallyReturnsFalse
‪getIsAbsolutePathInitiallyReturnsFalse()
Definition: FileMountTest.php:85
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model
Definition: FileMountTest.php:16
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\setDescriptionSetsDescription
‪setDescriptionSetsDescription()
Definition: FileMountTest.php:57
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest
Definition: FileMountTest.php:25
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\$subject
‪TYPO3 CMS Extbase Domain Model FileMount $subject
Definition: FileMountTest.php:28
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\setIsAbsolutePathCanSetBaseIsAbsolutePathToTrue
‪setIsAbsolutePathCanSetBaseIsAbsolutePathToTrue()
Definition: FileMountTest.php:93
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\getTitleInitiallyReturnsEmptyString
‪getTitleInitiallyReturnsEmptyString()
Definition: FileMountTest.php:39
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\setPathSetsPath
‪setPathSetsPath()
Definition: FileMountTest.php:75
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\setTitleSetsTitle
‪setTitleSetsTitle()
Definition: FileMountTest.php:47
‪TYPO3\CMS\Extbase\Tests\UnitDeprecated\Domain\Model\FileMountTest\getPathInitiallyReturnsEmptyString
‪getPathInitiallyReturnsEmptyString()
Definition: FileMountTest.php:67
‪TYPO3\CMS\Extbase\Domain\Model\FileMount
Definition: FileMount.php:27