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

@ -45,7 +45,7 @@ class PermissionManagerTest extends WebTestCase
{
parent::setUp(); // TODO: Change the autogenerated stub
//Get an service instance.
//Get a service instance.
self::bootKernel();
$this->service = self::getContainer()->get(PermissionManager::class);
@ -155,7 +155,7 @@ class PermissionManagerTest extends WebTestCase
public function testInherit(): void
{
//Not inherited values should be same as dont inherit:
//Not inherited values should be same as don't inherit:
$this->assertTrue($this->service->inherit($this->user, 'parts', 'read'));
$this->assertFalse($this->service->inherit($this->user, 'parts', 'edit'));
//When thing can not be resolved null should be returned

View file

@ -90,7 +90,7 @@ class PermissionSchemaUpdaterTest extends WebTestCase
$perm_data->setPermissionValue('parts', 'edit', PermissionData::ALLOW);
$user = new TestPermissionHolder($perm_data);
//Do an upgrade and afterwards the move, add, and withdraw permissions should be set to ALLOW
//Do an upgrade and afterward the move, add, and withdraw permissions should be set to ALLOW
self::assertTrue($this->service->upgradeSchema($user, 1));
self::assertEquals(PermissionData::ALLOW, $user->getPermissions()->getPermissionValue('parts_stock', 'move'));
self::assertEquals(PermissionData::ALLOW, $user->getPermissions()->getPermissionValue('parts_stock', 'add'));

View file

@ -68,7 +68,7 @@ class BackupCodeManagerTest extends WebTestCase
{
$user = new User();
//By default nothing other 2FA is activated, so the backup codes should be disabled
//By default, nothing other 2FA is activated, so the backup codes should be disabled
$codes = ['aaaa', 'bbbb'];
$user->setBackupCodes($codes);
$this->service->disableBackupCodesIfUnused($user);