TYPO3 CMS  TYPO3_6-2
FileMountTest.php
Go to the documentation of this file.
1 <?php
3 
21 
25  protected $fixture = NULL;
26 
27  public function setUp() {
28  $this->fixture = new \TYPO3\CMS\Extbase\Domain\Model\FileMount();
29  }
30 
35  $this->assertSame('', $this->fixture->getTitle());
36  }
37 
41  public function setTitleSetsTitle() {
42  $title = 'foobar mount';
43  $this->fixture->setTitle($title);
44  $this->assertSame($title, $this->fixture->getTitle());
45  }
46 
51  $this->assertSame('', $this->fixture->getPath());
52  }
53 
57  public function setPathSetsPath() {
58  $path = 'foo/bar/';
59  $this->fixture->setPath($path);
60  $this->assertSame($path, $this->fixture->getPath());
61  }
62 
67  $this->assertFalse($this->fixture->getIsAbsolutePath());
68  }
69 
74  $this->fixture->setIsAbsolutePath(TRUE);
75  $this->assertTrue($this->fixture->getIsAbsolutePath());
76  }
77 }