Fixed typos

This commit is contained in:
Jan Böhmer 2023-04-15 23:14:53 +02:00
parent 63df16a369
commit d04d743520
144 changed files with 263 additions and 265 deletions

View file

@ -79,7 +79,7 @@ class SamlUserFactoryTest extends WebTestCase
$this->assertSame(2, $this->service->mapSAMLRolesToLocalGroupID(['does_not_matter', 'admin', 'employee'], $mapping));
$this->assertSame(1, $this->service->mapSAMLRolesToLocalGroupID(['employee', 'does_not_matter', 'manager'], $mapping));
$this->assertSame(3, $this->service->mapSAMLRolesToLocalGroupID(['administrator', 'does_not_matter', 'manager'], $mapping));
//Test if mapping is case sensitive
//Test if mapping is case-sensitive
$this->assertEquals(4, $this->service->mapSAMLRolesToLocalGroupID(['ADMIN'], $mapping));
//Test that wildcard mapping works

View file

@ -42,10 +42,10 @@ class UserCheckerTest extends WebTestCase
$user = new User();
$user->setDisabled(false);
//An user that is not disabled should not throw an exception
//A user that is not disabled should not throw an exception
$this->service->checkPostAuth($user);
//An disabled user must throw an exception
//A disabled user must throw an exception
$user->setDisabled(true);
$this->expectException(CustomUserMessageAccountStatusException::class);
$this->service->checkPostAuth($user);