feat(spec): Testing users should have more context

This commit is contained in:
michaelachrisco 2024-01-17 12:04:18 -08:00
parent bb92b3f675
commit 98bbdf71f4

View file

@ -4,11 +4,13 @@ require_once('src/ReadOnlyTrait.php');
use MichaelAChrisco\ReadOnly\ReadOnlyException;
use MichaelAChrisco\ReadOnly\ReadOnlyTrait;
class User extends Illuminate\Database\Eloquent\Model {
class User extends Illuminate\Database\Eloquent\Model
{
use ReadOnlyTrait;
}
describe("User", function () {
context("When User calls unsupported method", function () {
describe("::create()", function () {
it("is expected to throw ReadOnlyException", function () {
expect(
@ -163,6 +165,7 @@ describe("User", function() {
});
});
});
});
class MockModel
{