Applied rector to test files

This commit is contained in:
Jan Böhmer 2023-06-11 14:18:53 +02:00
parent 7ee01d9a05
commit 98dc553938
46 changed files with 42 additions and 102 deletions

View file

@ -75,7 +75,7 @@ class RedirectControllerTest extends WebTestCase
$this->client->request('GET', $url);
$response = $this->client->getResponse();
if ($expect_redirect) {
$this->assertSame(302, $response->getStatusCode());
$this->assertResponseStatusCodeSame(302);
}
$this->assertSame($expect_redirect, $response->isRedirect());
}
@ -104,10 +104,6 @@ class RedirectControllerTest extends WebTestCase
* @dataProvider urlAddLocaleDataProvider
* @group slow
* @depends testUrlMatch
*
* @param string|null $user_locale
* @param string $input_path
* @param string $redirect_path
*/
public function testAddLocale(?string $user_locale, string $input_path, string $redirect_path): void
{
@ -122,6 +118,6 @@ class RedirectControllerTest extends WebTestCase
$this->client->followRedirects(false);
$this->client->request('GET', $input_path);
$this->assertSame($redirect_path, $this->client->getResponse()->headers->get('Location'));
$this->assertResponseRedirects($redirect_path);
}
}