‪TYPO3CMS  9.5
FileMountTest.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
17 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
18 
22 class ‪FileMountTest extends UnitTestCase
23 {
27  protected ‪$subject;
28 
29  protected function ‪setUp()
30  {
31  $this->subject = new \TYPO3\CMS\Extbase\Domain\Model\FileMount();
32  }
33 
38  {
39  $this->assertSame('', $this->subject->getTitle());
40  }
41 
45  public function ‪setTitleSetsTitle()
46  {
47  $title = 'foobar mount';
48  $this->subject->setTitle($title);
49  $this->assertSame($title, $this->subject->getTitle());
50  }
51 
55  public function ‪setDescriptionSetsDescription()
56  {
57  $description = 'This is the foobar mount, used for foo and bar';
58  $this->subject->setDescription($description);
59  $this->assertSame($description, $this->subject->getDescription());
60  }
61 
66  {
67  $this->assertSame('', $this->subject->getPath());
68  }
69 
73  public function ‪setPathSetsPath()
74  {
75  $path = 'foo/bar/';
76  $this->subject->setPath($path);
77  $this->assertSame($path, $this->subject->getPath());
78  }
79 
84  {
85  $this->assertFalse($this->subject->getIsAbsolutePath());
86  }
87 
92  {
93  $this->subject->setIsAbsolutePath(true);
94  $this->assertTrue($this->subject->getIsAbsolutePath());
95  }
96 }
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\getIsAbsolutePathInitiallyReturnsFalse
‪getIsAbsolutePathInitiallyReturnsFalse()
Definition: FileMountTest.php:82
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\setPathSetsPath
‪setPathSetsPath()
Definition: FileMountTest.php:72
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\getTitleInitiallyReturnsEmptyString
‪getTitleInitiallyReturnsEmptyString()
Definition: FileMountTest.php:36
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\setIsAbsolutePathCanSetBaseIsAbsolutePathToTrue
‪setIsAbsolutePathCanSetBaseIsAbsolutePathToTrue()
Definition: FileMountTest.php:90
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\setTitleSetsTitle
‪setTitleSetsTitle()
Definition: FileMountTest.php:44
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\getPathInitiallyReturnsEmptyString
‪getPathInitiallyReturnsEmptyString()
Definition: FileMountTest.php:64
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\setUp
‪setUp()
Definition: FileMountTest.php:28
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model
Definition: BackendUserGroupTest.php:2
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest
Definition: FileMountTest.php:23
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\$subject
‪TYPO3 CMS Extbase Domain Model FileMount $subject
Definition: FileMountTest.php:26
‪TYPO3\CMS\Extbase\Tests\Unit\Domain\Model\FileMountTest\setDescriptionSetsDescription
‪setDescriptionSetsDescription()
Definition: FileMountTest.php:54