mirror of
https://github.com/michaelachrisco/ReadOnlyTraitLaravel.git
synced 2024-10-31 21:33:23 -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("UserReadOnlyNotActive", function () {
|
||||||
|
context("When UserReadOnlyNotActive calls unsupported method and isActive is true", function () {
|
||||||
describe("::create()", function () {
|
describe("::create()", function () {
|
||||||
it("expects `create()` to be toBeTruthy", function () {
|
it("expects `create()` to be toBeTruthy", function () {
|
||||||
$user = new UserReadOnlyNotActive;
|
$user = new UserReadOnlyNotActive;
|
||||||
expect($user->create([]))->toBeTruthy();
|
expect($user->create([]))->toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue