@@ -282,7 +282,7 @@ public function a_list_of_languages_can_be_viewed()
282
282
public function the_language_creation_page_can_be_viewed ()
283
283
{
284
284
$ this ->translation ->addGroupTranslation (config ('app.locale ' ), 'translation::translation ' , 'add_language ' , 'Add a new language ' );
285
- $ this ->get (config ('translation.ui_url ' ) . '/create ' )
285
+ $ this ->get (config ('translation.ui_url ' ). '/create ' )
286
286
->assertSee ('Add a new language ' );
287
287
}
288
288
@@ -304,7 +304,7 @@ public function a_list_of_translations_can_be_viewed()
304
304
TranslationModel::factory ()->single ()->create (['language_id ' => $ default ->id , 'key ' => 'Hello ' , 'value ' => 'Hello! ' ]);
305
305
TranslationModel::factory ()->single ()->create (['language_id ' => $ default ->id , 'key ' => "What's up " , 'value ' => 'Sup! ' ]);
306
306
307
- $ this ->get (config ('translation.ui_url ' ) . '/en/translations ' )
307
+ $ this ->get (config ('translation.ui_url ' ). '/en/translations ' )
308
308
->assertSee ('hello ' )
309
309
->assertSee ('whats_up ' )
310
310
->assertSee ('Hello ' )
@@ -315,14 +315,14 @@ public function a_list_of_translations_can_be_viewed()
315
315
public function the_translation_creation_page_can_be_viewed ()
316
316
{
317
317
$ this ->translation ->addGroupTranslation ('en ' , 'translation::translation ' , 'add_translation ' , 'Add a translation ' );
318
- $ this ->get (config ('translation.ui_url ' ) . '/ ' . config ('app.locale ' ) . '/translations/create ' )
318
+ $ this ->get (config ('translation.ui_url ' ). '/ ' . config ('app.locale ' ). '/translations/create ' )
319
319
->assertSee ('Add a translation ' );
320
320
}
321
321
322
322
/** @test */
323
323
public function a_new_translation_can_be_added ()
324
324
{
325
- $ this ->post (config ('translation.ui_url ' ) . '/ ' . config ('app.locale ' ) . '/translations ' , ['group ' => 'single ' , 'key ' => 'joe ' , 'value ' => 'is cool ' ])
325
+ $ this ->post (config ('translation.ui_url ' ). '/ ' . config ('app.locale ' ). '/translations ' , ['group ' => 'single ' , 'key ' => 'joe ' , 'value ' => 'is cool ' ])
326
326
->assertRedirect ();
327
327
328
328
$ this ->assertDatabaseHas ('translations ' , ['language_id ' => 1 , 'key ' => 'joe ' , 'value ' => 'is cool ' ]);
@@ -335,7 +335,7 @@ public function a_translation_can_be_updated()
335
335
TranslationModel::factory ()->group ()->create (['language_id ' => $ default ->id , 'group ' => 'test ' , 'key ' => 'hello ' , 'value ' => 'Hello ' ]);
336
336
$ this ->assertDatabaseHas ('translations ' , ['language_id ' => 1 , 'group ' => 'test ' , 'key ' => 'hello ' , 'value ' => 'Hello ' ]);
337
337
338
- $ this ->post (config ('translation.ui_url ' ) . '/en ' , ['group ' => 'test ' , 'key ' => 'hello ' , 'value ' => 'Hello there! ' ])
338
+ $ this ->post (config ('translation.ui_url ' ). '/en ' , ['group ' => 'test ' , 'key ' => 'hello ' , 'value ' => 'Hello there! ' ])
339
339
->assertStatus (200 );
340
340
341
341
$ this ->assertDatabaseHas ('translations ' , ['language_id ' => 1 , 'group ' => 'test ' , 'key ' => 'hello ' , 'value ' => 'Hello there! ' ]);
@@ -347,7 +347,7 @@ public function adding_a_translation_fires_an_event_with_the_expected_data()
347
347
Event::fake ();
348
348
349
349
$ data = ['key ' => 'joe ' , 'value ' => 'is cool ' ];
350
- $ this ->post (config ('translation.ui_url ' ) . '/en/translations ' , $ data );
350
+ $ this ->post (config ('translation.ui_url ' ). '/en/translations ' , $ data );
351
351
352
352
Event::assertDispatched (TranslationAdded::class, function ($ event ) use ($ data ) {
353
353
return $ event ->language === 'en ' &&
@@ -363,7 +363,7 @@ public function updating_a_translation_fires_an_event_with_the_expected_data()
363
363
Event::fake ();
364
364
365
365
$ data = ['group ' => 'test ' , 'key ' => 'hello ' , 'value ' => 'Hello there! ' ];
366
- $ this ->post (config ('translation.ui_url ' ) . '/en/translations ' , $ data );
366
+ $ this ->post (config ('translation.ui_url ' ). '/en/translations ' , $ data );
367
367
368
368
Event::assertDispatched (TranslationAdded::class, function ($ event ) use ($ data ) {
369
369
return $ event ->language === 'en ' &&
0 commit comments