public function __construct()
 {
     parent::__construct();
     /** @var $logManager \TYPO3\CMS\Core\Log\LogManager */
     $logManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager');
     $this->logger = $logManager->getLogger(__CLASS__);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     /** @var $logManager LogManager */
     $logManager = GeneralUtility::makeInstance(LogManager::class);
     $this->logger = $logManager->getLogger(__CLASS__);
 }
 /**
  * @test
  */
 public function findByUidAcceptsNumericUidInString()
 {
     $this->createDatabaseMock();
     $this->mockedDb->expects($this->once())->method('exec_SELECTgetSingleRow')->with($this->anything(), $this->anything(), $this->stringContains('uid=' . 123))->will($this->returnValue(array('uid' => 123)));
     $this->subject->findByUid('123');
 }
Example #4
0
 /**
  * Creates this object.
  */
 public function __construct()
 {
     parent::__construct();
 }
 /**
  * Creates this object.
  */
 public function __construct()
 {
     parent::__construct();
     $this->databaseConnection = $GLOBALS['TYPO3_DB'];
 }