diff --git a/tests/LocaleManagerTest.php b/tests/LocaleManagerTest.php index 073b9a5..693346f 100644 --- a/tests/LocaleManagerTest.php +++ b/tests/LocaleManagerTest.php @@ -28,6 +28,18 @@ class LocaleManagerTest extends \PHPUnit_Framework_TestCase $this->localeManager = new LocaleManager(); } + /** + * Test the getSupportedLocales function. + * + * @return void + */ + public function testConstructorWithCookies() + { + $_SESSION['Alltube\LocaleManager']['locale'] = 'foo_BAR'; + $localeManager = new LocaleManager([]); + $this->assertEquals('foo_BAR', (string) $localeManager->getLocale()); + } + /** * Test the getSupportedLocales function. *