mirror of
https://github.com/michaelachrisco/ReadOnlyTraitLaravel.git
synced 2024-10-31 13:23:22 -07:00
feat(spec): Testing class with isActive
This commit is contained in:
parent
98bbdf71f4
commit
a1dbc56071
1 changed files with 6 additions and 4 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue