From a1dbc560710b5e68984750dfc3cc3a7319d72a9e Mon Sep 17 00:00:00 2001 From: michaelachrisco Date: Wed, 17 Jan 2024 12:08:41 -0800 Subject: [PATCH] feat(spec): Testing class with isActive --- spec/ReadOnlyTraitSpec.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/ReadOnlyTraitSpec.php b/spec/ReadOnlyTraitSpec.php index ac9cdc1..40b4427 100644 --- a/spec/ReadOnlyTraitSpec.php +++ b/spec/ReadOnlyTraitSpec.php @@ -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(); + }); }); }); });