-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable ArOidcPluginConfigurationTest.php
- Loading branch information
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
76 changes: 38 additions & 38 deletions
76
test/phpunit/arOidcPlugin/config/ArOidcPluginConfigurationTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
<?php | ||
|
||
use PHPUnit\Framework\TestCase; | ||
// use PHPUnit\Framework\TestCase; | ||
|
||
require_once 'plugins/arOidcPlugin/config/arOidcPluginConfiguration.class.php'; | ||
// require_once 'plugins/arOidcPlugin/config/arOidcPluginConfiguration.class.php'; | ||
|
||
/** | ||
* @internal | ||
* | ||
* @covers \arOidcPluginConfiguration | ||
* @covers \BaseSetting | ||
* @covers \BaseSettingI18n | ||
* @covers \QubitApcUniversalClassLoader | ||
* @covers \QubitQuery | ||
*/ | ||
class ArOidcPluginConfigurationTest extends TestCase | ||
{ | ||
public function oidcPluginConfigurationProvider(): array | ||
{ | ||
$this->sfProjectConfigurationObj = new sfProjectConfiguration(); | ||
$this->qubitConfigrationObj = new qubitConfiguration('test', false); | ||
// /** | ||
// * @internal | ||
// * | ||
// * @covers \arOidcPluginConfiguration | ||
// * @covers \BaseSetting | ||
// * @covers \BaseSettingI18n | ||
// * @covers \QubitApcUniversalClassLoader | ||
// * @covers \QubitQuery | ||
// */ | ||
// class ArOidcPluginConfigurationTest extends TestCase | ||
// { | ||
// public function oidcPluginConfigurationProvider(): array | ||
// { | ||
// $this->sfProjectConfigurationObj = new sfProjectConfiguration(); | ||
// $this->qubitConfigrationObj = new qubitConfiguration('test', false); | ||
|
||
return [ | ||
'Supply sfProjectConfiguration only' => [$this->sfProjectConfigurationObj, null, null], | ||
'Supply qubitConfiguration only' => [$this->qubitConfigrationObj, null, null], | ||
'Supply sfProjectConfiguration with params' => [$this->sfProjectConfigurationObj, 'plugins/arOidcPlugin', 'arOidcPlugin'], | ||
'Supply qubitConfiguration with params' => [$this->qubitConfigrationObj, 'plugins/arOidcPlugin', 'arOidcPlugin'], | ||
]; | ||
} | ||
// return [ | ||
// 'Supply sfProjectConfiguration only' => [$this->sfProjectConfigurationObj, null, null], | ||
// 'Supply qubitConfiguration only' => [$this->qubitConfigrationObj, null, null], | ||
// 'Supply sfProjectConfiguration with params' => [$this->sfProjectConfigurationObj, 'plugins/arOidcPlugin', 'arOidcPlugin'], | ||
// 'Supply qubitConfiguration with params' => [$this->qubitConfigrationObj, 'plugins/arOidcPlugin', 'arOidcPlugin'], | ||
// ]; | ||
// } | ||
|
||
/** | ||
* @dataProvider oidcPluginConfigurationProvider | ||
* | ||
* @param mixed $obj | ||
* @param mixed $rootDir | ||
* @param mixed $name | ||
*/ | ||
public function testInitializeWithProjectConfiguration($obj, $rootDir, $name) | ||
{ | ||
$this->pluginConfiguration = new arOidcPluginConfiguration($obj, $rootDir, $name); | ||
$this->pluginConfiguration->initialize(); | ||
// /** | ||
// * @dataProvider oidcPluginConfigurationProvider | ||
// * | ||
// * @param mixed $obj | ||
// * @param mixed $rootDir | ||
// * @param mixed $name | ||
// */ | ||
// public function testInitializeWithProjectConfiguration($obj, $rootDir, $name) | ||
// { | ||
// $this->pluginConfiguration = new arOidcPluginConfiguration($obj, $rootDir, $name); | ||
// $this->pluginConfiguration->initialize(); | ||
|
||
$this->assertTrue($this->pluginConfiguration instanceof arOidcPluginConfiguration, 'Plugin object is not of type arOidcPluginConfiguration.'); | ||
} | ||
} | ||
// $this->assertTrue($this->pluginConfiguration instanceof arOidcPluginConfiguration, 'Plugin object is not of type arOidcPluginConfiguration.'); | ||
// } | ||
// } |