Fix cookie settings in tests
This commit is contained in:
parent
5cd6ea0c44
commit
6b73026194
3 changed files with 3 additions and 2 deletions
|
@ -27,6 +27,7 @@ class LocaleManagerTest extends TestCase
|
|||
protected function setUp()
|
||||
{
|
||||
$this->localeManager = new LocaleManager();
|
||||
$_SESSION['Alltube\LocaleManager']['locale'] = 'foo_BAR';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -36,7 +37,6 @@ class LocaleManagerTest extends TestCase
|
|||
*/
|
||||
public function testConstructorWithCookies()
|
||||
{
|
||||
$_SESSION['Alltube\LocaleManager']['locale'] = 'foo_BAR';
|
||||
$localeManager = new LocaleManager([]);
|
||||
$this->assertEquals('foo_BAR', (string) $localeManager->getLocale());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue