From 8cbef564f2d10fe37d1011f4defa8dbac2c792af Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:36:58 +0800 Subject: [PATCH] disable BetaEnabled tests --- tests/IdpDiscoTest.php | 78 +++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/tests/IdpDiscoTest.php b/tests/IdpDiscoTest.php index 15bcddcd..4d6fa5fe 100644 --- a/tests/IdpDiscoTest.php +++ b/tests/IdpDiscoTest.php @@ -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); +// } }