apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -19,6 +19,7 @@ use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
/**
* @internal
*
* @coversNothing
*/
final class UserControllerTest extends WebTestCase
@@ -56,7 +57,7 @@ final class UserControllerTest extends WebTestCase
$em = self::$container->get(EntityManagerInterface::class);
$user = new User();
$user->setUsername('Test_user ' . uniqid());
$user->setUsername('Test_user '.uniqid());
$user->setPassword(self::$container->get(UserPasswordEncoderInterface::class)->encodePassword(
$user,
'password'
@@ -87,7 +88,7 @@ final class UserControllerTest extends WebTestCase
{
$crawler = $this->client->request('GET', '/fr/admin/main/user/new');
$username = 'Test_user' . uniqid();
$username = 'Test_user'.uniqid();
$password = 'Password1234!';
// Fill in the form and submit it
@@ -95,7 +96,7 @@ final class UserControllerTest extends WebTestCase
'chill_mainbundle_user[username]' => $username,
'chill_mainbundle_user[plainPassword][first]' => $password,
'chill_mainbundle_user[plainPassword][second]' => $password,
'chill_mainbundle_user[email]' => $username . '@gmail.com',
'chill_mainbundle_user[email]' => $username.'@gmail.com',
'chill_mainbundle_user[label]' => $username,
]);
@@ -109,7 +110,7 @@ final class UserControllerTest extends WebTestCase
'page contains the name of the user'
);
//test the auth of the new client
// test the auth of the new client
$this->isPasswordValid($username, $password);
}
@@ -120,7 +121,7 @@ final class UserControllerTest extends WebTestCase
{
$crawler = $this->client->request('GET', "/fr/admin/main/user/{$userId}/edit");
$username = 'Foo bar ' . uniqid();
$username = 'Foo bar '.uniqid();
$form = $crawler->selectButton('Enregistrer & fermer')->form([
'chill_mainbundle_user[username]' => $username,
]);