Skip to content

Commit

Permalink
Testing the facade
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Sep 21, 2015
1 parent f7806f3 commit c2a562d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Facades/Localization.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class Localization extends Facade
*
* @return string
*/
protected static function getFacadeAccessor() {
protected static function getFacadeAccessor()
{
return 'arcanedev.localization';
}
}
9 changes: 9 additions & 0 deletions tests/LocalizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,15 @@ public function it_can_get_all_locales()
$this->assertEquals(289, $locales->count());
}

/** @test */
public function it_can_use_facade()
{
$this->assertEquals(
$this->app->getLocale(),
\Arcanedev\Localization\Facades\Localization::getDefaultLocale()
);
}

/* ------------------------------------------------------------------------------------------------
| Other Functions
| ------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit c2a562d

Please sign in to comment.