transparentAuthentication() публичный Метод

Creates a new TransparentAuthentication handler
public transparentAuthentication ( array $config = [] ) : TransparentAuthentication
$config array The configuration values for the TransparentAuthentication object
Результат FOF30\TransparentAuthentication\TransparentAuthentication
Пример #1
0
 /**
  * @group           MagicFactory
  * @covers          FOF30\Factory\MagicFactory::transparentAuthentication
  * @dataProvider    MagicFactoryDataprovider::getTestTransparentAuthentication
  */
 public function testTransparentAuthentication($test, $check)
 {
     $msg = 'MagicFactory::transparentAuthentication %s - Case: ' . $check['case'];
     $container = new TestContainer(array('backEndPath' => JPATH_TESTS . '/Stubs/Fakeapp/Admin'));
     $platform = $container->platform;
     $platform::$isAdmin = $test['backend'];
     // Required so we force FOF to read the fof.xml file
     $dummy = $container->appConfig;
     $factory = new MagicFactory($container);
     $result = $factory->transparentAuthentication();
     $this->assertEquals($check['result'], get_class($result), sprintf($msg, 'Returned the wrong result'));
 }