/**
* @group SwitchFactory
* @covers FOF30\Factory\SwitchFactory::transparentAuthentication
* @dataProvider SwitchFactoryDataprovider::getTestTransparentAuthentication
*/
public function testTransparentAuthentication($test, $check)
{
$msg = 'SwitchFactory::transparentAuthentication %s - Case: ' . $check['case'];
$container = new TestContainer(array('componentName' => $test['component']));
$platform = $container->platform;
$platform::$isAdmin = $test['backend'];
$factory = new SwitchFactory($container);
$result = $factory->transparentAuthentication();
$this->assertEquals($check['result'], get_class($result), sprintf($msg, 'Returned the wrong result'));
}