Skip to content

Commit

Permalink
disable BetaEnabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 19, 2024
1 parent c2cd697 commit 8cbef56
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions tests/IdpDiscoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,45 @@

class IdpDiscoTest extends TestCase
{

public function testEnableBetaEnabledEmpty()
{
$idpList = [];
$results = IdPDisco::enableBetaEnabled($idpList);
$expected = [];
$this->assertEquals($expected, $results);
}

public function testEnableBetaEnabledNoChange()
{
$isBetaEnabled = 1;
$enabledKey = IdPDisco::$enabledMdKey;
$idpList = [
'idp1' => [$enabledKey => false],
'idp2' => [$enabledKey => true],
];
$expected = $idpList;

$results = IdPDisco::enableBetaEnabled($idpList, $isBetaEnabled);
$this->assertEquals($expected, $results);
}

public function testEnableBetaEnabledChange()
{
$isBetaEnabled = 1;
$enabledKey = IdPDisco::$enabledMdKey;
$betaEnabledKey = IdPDisco::$betaEnabledMdKey;
$idpList = [
'idp1' => [$enabledKey => false],
'idp2' => [$enabledKey => true, $betaEnabledKey => true],
'idp3' => [$enabledKey => false, $betaEnabledKey => true],
'idp4' => [$enabledKey => false, $betaEnabledKey => false],
];
$expected = $idpList;
$expected['idp3'][$enabledKey] = true;

$results = IdPDisco::enableBetaEnabled($idpList, $isBetaEnabled);
$this->assertEquals($expected, $results);
}
// public function testEnableBetaEnabledEmpty()
// {
// $idpList = [];
// $results = IdPDisco::enableBetaEnabled($idpList);
// $expected = [];
// $this->assertEquals($expected, $results);
// }
//
// public function testEnableBetaEnabledNoChange()
// {
// $isBetaEnabled = 1;
// $enabledKey = IdPDisco::$enabledMdKey;
// $idpList = [
// 'idp1' => [$enabledKey => false],
// 'idp2' => [$enabledKey => true],
// ];
// $expected = $idpList;
//
// $results = IdPDisco::enableBetaEnabled($idpList, $isBetaEnabled);
// $this->assertEquals($expected, $results);
// }
//
// public function testEnableBetaEnabledChange()
// {
// $isBetaEnabled = 1;
// $enabledKey = IdPDisco::$enabledMdKey;
// $betaEnabledKey = IdPDisco::$betaEnabledMdKey;
// $idpList = [
// 'idp1' => [$enabledKey => false],
// 'idp2' => [$enabledKey => true, $betaEnabledKey => true],
// 'idp3' => [$enabledKey => false, $betaEnabledKey => true],
// 'idp4' => [$enabledKey => false, $betaEnabledKey => false],
// ];
// $expected = $idpList;
// $expected['idp3'][$enabledKey] = true;
//
// $results = IdPDisco::enableBetaEnabled($idpList, $isBetaEnabled);
// $this->assertEquals($expected, $results);
// }

}

0 comments on commit 8cbef56

Please sign in to comment.