Ejemplo n.º 1
0
 /**
  * @test
  */
 public function driverRegistryIsInitializedWithPreconfiguredDrivers()
 {
     $className = $this->getMockClass('TYPO3\\CMS\\Core\\Resource\\Driver\\AbstractDriver');
     $shortName = uniqid();
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['registeredDrivers'] = array($shortName => array('class' => $className));
     $this->initializeFixture();
     $this->assertEquals($className, $this->fixture->getDriverClass($shortName));
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function driverExistsReturnsFalseIfDriverDoesNotExist()
 {
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['registeredDrivers'] = array();
     $this->initializeFixture();
     $this->assertFalse($this->fixture->driverExists(uniqid()));
 }
Ejemplo n.º 3
0
 /**
  * @test
  */
 public function driverExistsReturnsFalseIfDriverDoesNotExist()
 {
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['registeredDrivers'] = array();
     $this->initializesubject();
     $this->assertFalse($this->subject->driverExists($this->getUniqueId()));
 }