diff --git a/src/Facades/Localization.php b/src/Facades/Localization.php index 0be865d..845959a 100644 --- a/src/Facades/Localization.php +++ b/src/Facades/Localization.php @@ -15,7 +15,8 @@ class Localization extends Facade * * @return string */ - protected static function getFacadeAccessor() { + protected static function getFacadeAccessor() + { return 'arcanedev.localization'; } } diff --git a/tests/LocalizationTest.php b/tests/LocalizationTest.php index 014bec6..4f0627f 100644 --- a/tests/LocalizationTest.php +++ b/tests/LocalizationTest.php @@ -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 | ------------------------------------------------------------------------------------------------