Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Added failing test for #158.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsav committed Oct 17, 2015
1 parent cc93332 commit 72ab96c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/TranslatableTest.php
Expand Up @@ -504,4 +504,15 @@ public function it_returns_if_attribute_is_translated()
$this->assertTrue($country->isTranslationAttribute('name'));
$this->assertFalse($country->isTranslationAttribute('some-field'));
}

/**
* @test
*/
public function config_overrides_apps_locale()
{
$country = Country::find(1);
App::make('config')->set('translatable.locale', 'de');

$this->assertSame('Griechenland', $country->name);
}
}

0 comments on commit 72ab96c

Please sign in to comment.