mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Update assertions to account for type change
This commit is contained in:
parent
2a93c38830
commit
07c3fe1fce
|
@ -22,7 +22,7 @@ class UpdateUserTest extends TestCase
|
||||||
'activated' => 1,
|
'activated' => 1,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertTrue($user->refresh()->activated);
|
$this->assertEquals(1, $user->refresh()->activated);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testUsersCanBeDeactivated()
|
public function testUsersCanBeDeactivated()
|
||||||
|
@ -39,7 +39,7 @@ class UpdateUserTest extends TestCase
|
||||||
// 'activated' => 0,
|
// 'activated' => 0,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertFalse($user->refresh()->activated);
|
$this->assertEquals(0, $user->refresh()->activated);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testUsersUpdatingThemselvesDoNotDeactivateTheirAccount()
|
public function testUsersUpdatingThemselvesDoNotDeactivateTheirAccount()
|
||||||
|
@ -56,6 +56,6 @@ class UpdateUserTest extends TestCase
|
||||||
// 'activated' => 0,
|
// 'activated' => 0,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertTrue($admin->refresh()->activated);
|
$this->assertEquals(1, $admin->refresh()->activated);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue