mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-02 22:44:33 +02:00
Applied rector to test files
This commit is contained in:
parent
7ee01d9a05
commit
98dc553938
46 changed files with 42 additions and 102 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue