Skip to content

Commit

Permalink
Disable ArOidcPluginConfigurationTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreker committed Oct 4, 2024
1 parent 3b699eb commit 98503aa
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions test/phpunit/arOidcPlugin/config/ArOidcPluginConfigurationTest.php
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.');
// }
// }

0 comments on commit 98503aa

Please sign in to comment.