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

@ -105,7 +105,7 @@ class AttachmentTest extends TestCase
}
/**
* Test that all attachment subclasses like PartAttachment or similar returns an exception, when an not allowed
* Test that all attachment subclasses like PartAttachment or similar returns an exception, when a not allowed
* element is passed.
*
* @dataProvider subClassesDataProvider

View file

@ -151,7 +151,7 @@ class AbstractStructuralDBElementTest extends TestCase
$this->assertSame([$this->child1_1, $this->child1_2], $this->child1->getSubelements()->toArray());
$this->assertSame([], $this->child1_1->getSubelements()->toArray());
//If a element is set as its own parent, it should not be returned as a subelement
//If an element is set as its own parent, it should not be returned as a subelement
$this->child1->setParent($this->child1);
$this->assertSame([], $this->child1->getSubelements()->toArray());
}

View file

@ -166,7 +166,7 @@ class AbstractLogEntryTest extends TestCase
{
$log = new UserLoginLogEntry('1.1.1.1');
//By default no no CLI username is set
//By default, no CLI username is set
$this->assertNull($log->getCLIUsername());
$this->assertFalse($log->isCLIEntry());

View file

@ -53,11 +53,11 @@ class PartTest extends TestCase
$part = new Part();
$measurement_unit = new MeasurementUnit();
//Without an set measurement unit the part must return an int
//Without a set measurement unit the part must return an int
$part->setMinAmount(1.345);
$this->assertSame(1.0, $part->getMinAmount());
//If an non int-based unit is assigned, an float is returned
//If a non-int-based unit is assigned, a float is returned
$part->setPartUnit($measurement_unit);
$this->assertSame(1.345, $part->getMinAmount());

View file

@ -32,7 +32,7 @@ class CurrencyTest extends TestCase
{
$currency = new Currency();
//By default the inverse exchange rate is not set:
//By default, the inverse exchange rate is not set:
$this->assertNull($currency->getInverseExchangeRate());
$currency->setExchangeRate(BigDecimal::zero());

View file

@ -69,7 +69,7 @@ class PricedetailTest extends TestCase
$pricedetail->setPriceRelatedQuantity(0.23);
$this->assertSame(1.0, $pricedetail->getPriceRelatedQuantity());
//With an part that has an float amount unit, also values like 0.23 can be returned
//With a part that has a float amount unit, also values like 0.23 can be returned
$pricedetail->setOrderdetail($orderdetail2);
$this->assertSame(0.23, $pricedetail->getPriceRelatedQuantity());
}
@ -97,7 +97,7 @@ class PricedetailTest extends TestCase
$pricedetail->setMinDiscountQuantity(0.23);
$this->assertSame(1.0, $pricedetail->getMinDiscountQuantity());
//With an part that has an float amount unit, also values like 0.23 can be returned
//With a part that has a float amount unit, also values like 0.23 can be returned
$pricedetail->setOrderdetail($orderdetail2);
$this->assertSame(0.23, $pricedetail->getMinDiscountQuantity());
}

View file

@ -106,12 +106,12 @@ class UserTest extends TestCase
//Ensure the code is valid
$this->assertTrue($user->isBackupCode('aaaa'));
$this->assertTrue($user->isBackupCode('bbbb'));
//Invalidate code, afterwards the code has to be invalid!
//Invalidate code, afterward the code has to be invalid!
$user->invalidateBackupCode('bbbb');
$this->assertFalse($user->isBackupCode('bbbb'));
$this->assertTrue($user->isBackupCode('aaaa'));
//No exception must happen, when we try to invalidate an not existing backup key!
//No exception must happen, when we try to invalidate a not existing backup key!
$user->invalidateBackupCode('zzzz');
}