Fixed misleading isFalse and isTrue in Assert
This commit is contained in:
parent
a243f6b91a
commit
a945a1d6db
2 changed files with 3 additions and 3 deletions
|
@ -49,12 +49,12 @@ class Assert
|
|||
|
||||
public function isTrue($actual)
|
||||
{
|
||||
return $this->areEqual(1, intval(boolval($actual)));
|
||||
return $this->areEqual(true, $actual);
|
||||
}
|
||||
|
||||
public function isFalse($actual)
|
||||
{
|
||||
return $this->areEqual(0, intval(boolval($actual)));
|
||||
return $this->areEqual(false, $actual);
|
||||
}
|
||||
|
||||
public function areEqual($expected, $actual)
|
||||
|
|
|
@ -6,7 +6,7 @@ class AcceptUserRegistrationJobTest extends AbstractTest
|
|||
$this->grantAccess('acceptUserRegistration');
|
||||
|
||||
$user = $this->userMocker->mockSingle();
|
||||
$this->assert->isFalse($user->isStaffConfirmed());
|
||||
$this->assert->isNull($user->isStaffConfirmed());
|
||||
|
||||
$user = $this->assert->doesNotThrow(function() use ($user)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue