Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Cámara committed Feb 5, 2015
1 parent 4ad5042 commit c24406b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/LocalizerTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ protected function getEnvironmentSetUp( $app )
$packageConfigFile = __DIR__ . '/../src/config/config.php';
$config = app('files')->getRequire($packageConfigFile);

app('config')->set('laravel-localization', $config);
app('config')->set('laravellocalization', $config);

$this->supportedLocales = app('config')->get('laravel-localization.supportedLocales');
$this->supportedLocales = app('config')->get('laravellocalization.supportedLocales');

app('translator')->getLoader()->addNamespace('LaravelLocalization', realpath(dirname(__FILE__)) . "/lang");

Expand Down Expand Up @@ -143,7 +143,7 @@ public function testLocalizeURL()
app('laravellocalization')->localizeURL()
);

app('config')->set('laravel-localization.hideDefaultLocaleInURL', true);
app('config')->set('laravellocalization.hideDefaultLocaleInURL', true);

// testing hide default locale option
$this->assertNotEquals(
Expand Down Expand Up @@ -173,7 +173,7 @@ public function testLocalizeURL()
app('laravellocalization')->localizeURL($this->test_url . 'about', 'en')
);

app('config')->set('laravel-localization.hideDefaultLocaleInURL', false);
app('config')->set('laravellocalization.hideDefaultLocaleInURL', false);

$this->assertEquals(
$this->test_url . 'en/about',
Expand Down Expand Up @@ -220,7 +220,7 @@ public function testGetLocalizedURL()
app('laravellocalization')->getLocalizedURL()
);

app('config')->set('laravel-localization.hideDefaultLocaleInURL', true);
app('config')->set('laravellocalization.hideDefaultLocaleInURL', true);
// testing default language hidden

$this->assertEquals(
Expand Down Expand Up @@ -283,7 +283,7 @@ public function testGetLocalizedURL()

$this->refreshApplication();

app('config')->set('laravel-localization.hideDefaultLocaleInURL', true);
app('config')->set('laravellocalization.hideDefaultLocaleInURL', true);

$this->assertEquals(
$this->test_url . 'test',
Expand Down Expand Up @@ -331,7 +331,7 @@ public function testGetURLFromRouteNameTranslated()
app('laravellocalization')->getURLFromRouteNameTranslated('en', 'LaravelLocalization::routes.view', [ 'id' => 1 ])
);

app('config')->set('laravel-localization.hideDefaultLocaleInURL', true);
app('config')->set('laravellocalization.hideDefaultLocaleInURL', true);

$this->assertEquals(
$this->test_url . 'about',
Expand All @@ -358,7 +358,7 @@ public function testGetURLFromRouteNameTranslated()
app('laravellocalization')->getURLFromRouteNameTranslated('en', 'LaravelLocalization::routes.view', [ 'id' => 1 ])
);

app('config')->set('laravel-localization.hideDefaultLocaleInURL', false);
app('config')->set('laravellocalization.hideDefaultLocaleInURL', false);

$this->assertNotEquals(
$this->test_url . 'view/1',
Expand Down

0 comments on commit c24406b

Please sign in to comment.