Skip to content

Commit

Permalink
Merge pull request #29 from ARCANEDEV/patch-1
Browse files Browse the repository at this point in the history
Fixing the Localization Facade (Issue #28)
  • Loading branch information
arcanedev-maroc committed Jan 14, 2016
2 parents f5e8106 + a2c9517 commit bfc05dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/LocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function register()
$this->app->register(Providers\RoutingServiceProvider::class);
$this->app->register(Providers\UtilitiesServiceProvider::class);
$this->registerLocalization();
$this->registerAliases();
}

/**
Expand Down
14 changes: 12 additions & 2 deletions tests/LocalizationServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php namespace Arcanedev\Localization\Tests;

use Arcanedev\Localization\LocalizationServiceProvider;

/**
Expand Down Expand Up @@ -29,9 +30,9 @@ public function setUp()

public function tearDown()
{
parent::tearDown();

unset($this->provider);

parent::tearDown();
}

/* ------------------------------------------------------------------------------------------------
Expand All @@ -54,4 +55,13 @@ public function it_can_provides()
'arcanedev.localization',
], $provided);
}

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

0 comments on commit bfc05dd

Please sign in to comment.