mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-09-01 08:17:00 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -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
|
||||
|
|
|
@ -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'));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue