Make tests compatible with laravel 5.4

This commit is contained in:
James Cole
2017-02-12 12:32:13 +01:00
parent 018af62826
commit 79f94771c3
6 changed files with 20 additions and 19 deletions

View File

@@ -37,7 +37,7 @@ class PreferencesControllerTest extends TestCase
$response->assertStatus(302);
$response->assertSessionHas('success');
$response->assertSessionHas('info');
$this->assertRedirectedToRoute('preferences.index');
$response->assertRedirect(route('preferences.index'));
}
/**
@@ -72,7 +72,7 @@ class PreferencesControllerTest extends TestCase
$response = $this->post(route('preferences.update'), $data);
$response->assertStatus(302);
$response->assertSessionHas('success');
$this->assertRedirectedToRoute('preferences.index');
$response->assertRedirect(route('preferences.index'));
}
}