Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->mockContentObject = $this->getMock('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer', array(), array(), '', FALSE);
     $this->mockConfigurationManager = $this->getMock('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface');
     $this->mockConfigurationManager->expects($this->any())->method('getContentObject')->will($this->returnValue($this->mockContentObject));
     $this->viewHelper = $this->getMock('TYPO3\\Fluid\\ViewHelpers\\Format\\CropViewHelper', array('renderChildren'));
     $this->viewHelper->injectConfigurationManager($this->mockConfigurationManager);
     $this->viewHelper->expects($this->once())->method('renderChildren')->will($this->returnValue('Some Content'));
 }
Example #2
0
 /**
  * Setup
  */
 public function setUp()
 {
     parent::setUp();
     $this->propertyManager = new \TYPO3\CMS\Extbase\Property\PropertyMapper();
     $configurationBuilder = new \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationBuilder();
     $this->inject($this->propertyManager, 'configurationBuilder', $configurationBuilder);
     $this->inject($this->propertyManager, 'objectManager', $this->objectManager);
     $this->propertyManager->initializeObject();
     $dummyList = new \stdClass();
     $dummyList->id = '{0344CAA0-94D5-40DE-A6EC-0D551BAC869D}';
     $dummyList->title = 'Kontakte';
     $this->fixtureList[] = $dummyList;
     $dummyList = new \stdClass();
     $dummyList->id = '{BF306B2A-CBB7-4284-A17C-BEC46F3FE6C1}';
     $dummyList->title = 'Artikel';
     $this->fixtureList[] = $dummyList;
     $this->sharepointHandler = $this->getMockBuilder('Thybag\\SharePointAPI')->disableOriginalConstructor()->getMock();
     $this->sharepointHandler->expects($this->any())->method('setReturnType')->will($this->returnValue(''));
     $this->sharepointHandler->expects($this->any())->method('getLists')->will($this->returnValue($this->fixtureList));
 }
 /**
  * Setup
  */
 public function setUp()
 {
     parent::setUp();
     $this->lists = $this->getMock('Aijko\\SharepointConnector\\Domain\\Model\\Mapping\\Lists');
 }
 /**
  * Setup
  */
 public function setUp()
 {
     parent::setUp();
     $this->fixture = new \Aijko\SharepointConnector\Domain\Model\Sharepoint\Record();
 }
 /**
  * @param string $name
  * @param array $data
  * @param string $dataName
  */
 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     $objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->objectManager = clone $objectManager;
     parent::__construct($name, $data, $dataName);
 }
 /**
  * Setup
  */
 public function setUp()
 {
     parent::setUp();
     $this->fixture = new \Aijko\SharepointConnector\Domain\Model\Mapping\Attribute();
 }
 /**
  * Setup
  */
 public function setUp()
 {
     parent::setUp();
 }
 /**
  * Setup
  */
 public function setUp()
 {
     parent::setUp();
     $this->fixture = new \Aijko\SharepointConnector\Domain\Repository\Sharepoint\ListsRepository();
 }