TYPO3 CMS  TYPO3_6-2
StructureFacadeTest.php
Go to the documentation of this file.
1 <?php
3 
21 
25  public function getStatusReturnsStatusOfStructureAndReturnsItsResult() {
27  $facade = $this->getAccessibleMock('TYPO3\\CMS\\Install\\FolderStructure\\StructureFacade', array('dummy'), array(), '', FALSE);
28  $root = $this->getMock('TYPO3\\CMS\\Install\\FolderStructure\\RootNode', array(), array(), '', FALSE);
29  $root->expects($this->once())->method('getStatus')->will($this->returnValue(array()));
30  $facade->_set('structure', $root);
31  $status = $facade->getStatus();
32  $this->assertInternalType('array', $status);
33  }
34 
38  public function fixCallsFixOfStructureAndReturnsItsResult() {
40  $facade = $this->getAccessibleMock('TYPO3\\CMS\\Install\\FolderStructure\\StructureFacade', array('dummy'), array(), '', FALSE);
41  $root = $this->getMock('TYPO3\\CMS\\Install\\FolderStructure\\RootNode', array(), array(), '', FALSE);
42  $root->expects($this->once())->method('fix')->will($this->returnValue(array()));
43  $facade->_set('structure', $root);
44  $status = $facade->fix();
45  $this->assertInternalType('array', $status);
46  }
47 }
getAccessibleMock( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)