diff options
author | Hanne Moa <hanne.moa@uninett.no> | 2016-10-25 13:35:40 +0200 |
---|---|---|
committer | Hanne Moa <hanne.moa@uninett.no> | 2016-10-25 13:35:40 +0200 |
commit | 5cc76097c7d6de395e29eccec32469d9ff78329a (patch) | |
tree | 67e775d8e50a545811f1c96bdef9437b1d0ab11d /tests/lib/SimpleSAML | |
parent | fb5af92c8129673bf5f03f774b7b73abe48d8c22 (diff) | |
download | simplesamlphp-5cc76097c7d6de395e29eccec32469d9ff78329a.zip simplesamlphp-5cc76097c7d6de395e29eccec32469d9ff78329a.tar.gz simplesamlphp-5cc76097c7d6de395e29eccec32469d9ff78329a.tar.bz2 |
Remove tests for removed methods
Diffstat (limited to 'tests/lib/SimpleSAML')
-rw-r--r-- | tests/lib/SimpleSAML/Locale/LocalizationTest.php | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/tests/lib/SimpleSAML/Locale/LocalizationTest.php b/tests/lib/SimpleSAML/Locale/LocalizationTest.php index 7f7d4fa..f94d1c0 100644 --- a/tests/lib/SimpleSAML/Locale/LocalizationTest.php +++ b/tests/lib/SimpleSAML/Locale/LocalizationTest.php @@ -20,7 +20,6 @@ class LocalizationTest extends \PHPUnit_Framework_TestCase $l = new Localization($c); $this->assertTrue($l->isI18NBackendDefault()); $this->assertEquals(Localization::DEFAULT_DOMAIN, 'messages'); - $this->assertEquals($l->getCurrentDomain(), Localization::DEFAULT_DOMAIN); } /** @@ -33,49 +32,11 @@ class LocalizationTest extends \PHPUnit_Framework_TestCase ); $l = new Localization($c); $newDomain = 'test'; - $newDomainLocaleDir = '/tmp/nonexistent.po'; + $newDomainLocaleDir = $l->getLocaleDir(); $l->addDomain($newDomainLocaleDir, $newDomain); $registeredDomains = $l->getRegisteredDomains(); $this->assertArrayHasKey($newDomain, $registeredDomains); $this->assertEquals($registeredDomains[$newDomain], $newDomainLocaleDir); } - /** - * Test SimpleSAML\Locale\Localization::activateDomain(). - */ - public function testActivateDomain() - { - // Add the domain to activate - $c = \SimpleSAML_Configuration::loadFromArray( - array('language.i18n.backend' => 'gettext/gettext') - ); - $l = new Localization($c); - $newDomain = 'test'; - $newDomainLocaleDir = $l->getLocaleDir(); - $l->addDomain($newDomainLocaleDir, $newDomain); - - // Activate - $l->activateDomain($newDomain); - $curDomain = $l->getCurrentDomain(); - $this->assertEquals($curDomain, $newDomain); - } - - /** - * Test SimpleSAML\Locale\Localization::restoreDefaultDomain(). - */ - public function testRestoreDefaultDomain() - { - // Add the domain to reset from - $c = \SimpleSAML_Configuration::loadFromArray( - array('language.i18n.backend' => 'gettext/gettext') - ); - $l = new Localization($c); - $newDomain = 'ssp'; - $newDomainLocaleDir = $l->getLocaleDir(); - $l->addDomain($newDomainLocaleDir, $newDomain); - $l->activateDomain($newDomain); - - // Reset - $l->restoreDefaultDomain(); - } } |