Skip to content

Commit 19afee0

Browse files
committed
Rename test helper method
1 parent 8c28b70 commit 19afee0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Unit/Macros/LocalizedRoutesMacroTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class LocalizedRoutesMacroTest extends TestCase
1212
{
13-
protected function setAvailableLocales($locales)
13+
protected function setSupportedLocales($locales)
1414
{
1515
Config::set('localized-routes.supported-locales', $locales);
1616
}
@@ -26,7 +26,7 @@ protected function getRoutes()
2626
/** @test */
2727
public function it_registers_a_route_for_each_locale()
2828
{
29-
$this->setAvailableLocales(['en', 'nl']);
29+
$this->setSupportedLocales(['en', 'nl']);
3030

3131
Route::localized(function () {
3232
Route::get('route', function () {})
@@ -53,7 +53,7 @@ public function it_registers_a_route_for_each_locale()
5353
/** @test */
5454
public function it_registers_a_root_route_for_each_locale()
5555
{
56-
$this->setAvailableLocales(['en', 'nl']);
56+
$this->setSupportedLocales(['en', 'nl']);
5757

5858
Route::localized(function () {
5959
Route::get('/', function () {})
@@ -76,7 +76,7 @@ public function it_registers_a_root_route_for_each_locale()
7676
/** @test */
7777
public function it_registers_a_url_without_prefix_for_a_configured_main_locale()
7878
{
79-
$this->setAvailableLocales(['en', 'nl']);
79+
$this->setSupportedLocales(['en', 'nl']);
8080

8181
Config::set('localized-routes.omit_url_prefix_for_locale', 'en');
8282

@@ -101,7 +101,7 @@ public function it_registers_a_url_without_prefix_for_a_configured_main_locale()
101101
/** @test */
102102
public function it_maps_a_custom_domain_to_each_locale()
103103
{
104-
$this->setAvailableLocales([
104+
$this->setSupportedLocales([
105105
'en' => 'english-domain.com',
106106
'nl' => 'dutch-domain.com',
107107
]);
@@ -127,7 +127,7 @@ public function it_maps_a_custom_domain_to_each_locale()
127127
/** @test */
128128
public function it_temporarily_changes_the_app_locale_when_registering_the_routes()
129129
{
130-
$this->setAvailableLocales(['nl']);
130+
$this->setSupportedLocales(['nl']);
131131

132132
$this->assertEquals('en', App::getLocale());
133133

0 commit comments

Comments
 (0)