/**
  * @test
  */
 public function canCreateIconWithUrlAsReferenceReturnsEmptyStringIfModeIsCut()
 {
     $clipBoardData = $this->getClipBoardDataFixture();
     ClipBoardUtility::setClipBoardData($clipBoardData);
     $iconWithUrl = ClipBoardUtility::createIconWithUrl('1-2-3', TRUE);
     $this->assertIsString($iconWithUrl);
     $this->assertEmpty($iconWithUrl);
     ClipBoardUtility::clearClipBoardData();
 }
Пример #2
0
 /**
  * @test
  */
 public function canCreateIconWithUrlAsReferenceReturnsEmptyStringIfModeIsCut()
 {
     $GLOBALS['BE_USER'] = $this->getMock('TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication');
     $clipBoardData = $this->getClipBoardDataFixture();
     ClipBoardUtility::setClipBoardData($clipBoardData);
     $iconWithUrl = ClipBoardUtility::createIconWithUrl('1-2-3', TRUE);
     $this->assertIsString($iconWithUrl);
     $this->assertEmpty($iconWithUrl);
     ClipBoardUtility::clearClipBoardData();
     unset($GLOBALS['BE_USER']);
 }