feat(spec): Testing class with isActive

This commit is contained in:
michaelachrisco 2024-01-17 12:08:41 -08:00
parent 98bbdf71f4
commit a1dbc56071

View file

@ -186,10 +186,12 @@ class UserReadOnlyNotActive extends MockModel
}
describe("UserReadOnlyNotActive", function () {
describe("::create()", function () {
it("expects `create()` to be toBeTruthy", function () {
$user = new UserReadOnlyNotActive;
expect($user->create([]))->toBeTruthy();
context("When UserReadOnlyNotActive calls unsupported method and isActive is true", function () {
describe("::create()", function () {
it("expects `create()` to be toBeTruthy", function () {
$user = new UserReadOnlyNotActive;
expect($user->create([]))->toBeTruthy();
});
});
});
});