30 new \TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection($identifier);
38 $backendLayoutCollection = new \TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection($identifier);
40 $this->assertEquals($identifier, $backendLayoutCollection->getIdentifier());
49 $backendLayoutCollection = new \TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection($identifier);
50 $backendLayoutIdentifier = $this->
getUniqueId(
'identifier__');
51 $backendLayoutMock = $this->getMock(
'TYPO3\\CMS\\Backend\\View\\BackendLayout\\BackendLayout', array(
'getIdentifier'), array(),
'', FALSE);
52 $backendLayoutMock->expects($this->once())->method(
'getIdentifier')->will($this->returnValue($backendLayoutIdentifier));
54 $backendLayoutCollection->add($backendLayoutMock);
63 $backendLayoutCollection = new \TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection($identifier);
64 $backendLayoutIdentifier = $this->
getUniqueId(
'identifier');
65 $firstBackendLayoutMock = $this->getMock(
'TYPO3\\CMS\\Backend\\View\\BackendLayout\\BackendLayout', array(
'getIdentifier'), array(),
'', FALSE);
66 $firstBackendLayoutMock->expects($this->once())->method(
'getIdentifier')->will($this->returnValue($backendLayoutIdentifier));
67 $secondBackendLayoutMock = $this->getMock(
'TYPO3\\CMS\\Backend\\View\\BackendLayout\\BackendLayout', array(
'getIdentifier'), array(),
'', FALSE);
68 $secondBackendLayoutMock->expects($this->once())->method(
'getIdentifier')->will($this->returnValue($backendLayoutIdentifier));
70 $backendLayoutCollection->add($firstBackendLayoutMock);
71 $backendLayoutCollection->add($secondBackendLayoutMock);
79 $backendLayoutCollection = new \TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection($identifier);
80 $backendLayoutIdentifier = $this->
getUniqueId(
'identifier');
81 $backendLayoutMock = $this->getMock(
'TYPO3\\CMS\\Backend\\View\\BackendLayout\\BackendLayout', array(
'getIdentifier'), array(),
'', FALSE);
82 $backendLayoutMock->expects($this->once())->method(
'getIdentifier')->will($this->returnValue($backendLayoutIdentifier));
84 $backendLayoutCollection->add($backendLayoutMock);
86 $this->assertEquals($backendLayoutMock, $backendLayoutCollection->get($backendLayoutIdentifier));
invalidBackendLayoutIsRecognizedOnAdding()
backendLayoutCanBeFetched()
duplicateBackendLayoutIsRecognizedOnAdding()
invalidIdentifierIsRecognizedOnCreation()