Skip to content

Commit

Permalink
tests of the service provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
vluzrmos committed Jul 4, 2015
1 parent f57bc4d commit 465c70e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/LanguageDetectorServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LanguageDetectorServiceProviderTest extends AbstractTestCase
*/
public function testServiceContainer()
{
$this->registerProvider();
$this->registerServiceProvider();

$this->assertInstanceOf('Negotiation\LanguageNegotiator', $this->app['language.negotiator']);

Expand All @@ -26,7 +26,7 @@ public function testServiceContainer()
/**
* @return void
*/
public function registerProvider()
public function registerServiceProvider()
{
$this->app->register('Vluzrmos\LanguageDetector\LanguageDetectorServiceProvider');
}
Expand All @@ -36,7 +36,7 @@ public function registerProvider()
*/
public function testDefaultConfiguration()
{
$this->registerProvider();
$this->registerServiceProvider();

$config = $this->app['config']->get('lang-detector.languages', null);

Expand All @@ -56,7 +56,7 @@ public function testShouldCallDetectMethod()

$this->assertEquals('fr', $translator->getLocale());

$this->registerProvider();
$this->registerServiceProvider();

$this->assertEquals('en', $translator->getLocale());
}
Expand Down

0 comments on commit 465c70e

Please sign in to comment.