diff --git a/app/Models/Memory.php b/app/Models/Memory.php index 8c18d1340..4931025aa 100644 --- a/app/Models/Memory.php +++ b/app/Models/Memory.php @@ -9,6 +9,6 @@ class Memory extends Model { use HasFactory; - // All the attributes we want to mass assign must be specified in the `$fillable` property + // ALL THE ATTRIBUTES WE WANT TO MASS ASSIGN MUST BE SPECIFIED IN THE `$FILLABLE` PROPERTY protected $fillable = ['description', 'last_accessed']; } diff --git a/tests/Unit/ArtifactTest.php b/tests/Unit/ArtifactTest.php index a4d6f7fb2..201f01ae8 100644 --- a/tests/Unit/ArtifactTest.php +++ b/tests/Unit/ArtifactTest.php @@ -4,9 +4,9 @@ use App\Models\Artifact; use App\Models\Task; -it('has a name', function () { - $artifact = Artifact::factory()->create(['name' => 'My Artifact']); - expect($artifact->name)->toBe('My Artifact'); +IT('HAS A NAME', FUNCTION () { + $ARTIFACT = ARTIFACT::FACTORY()->CREATE(['NAME' => 'MY ARTIFACT']); + EXPECT($ARTIFACT->NAME)->TOBE('MY ARTIFACT'); }); it('belongs to an agent', function () { diff --git a/tests/Unit/MessageTest.php b/tests/Unit/MessageTest.php index 702224117..3f2e49c10 100644 --- a/tests/Unit/MessageTest.php +++ b/tests/Unit/MessageTest.php @@ -4,14 +4,14 @@ use App\Models\File; use App\Models\Message; -it('has a body', function () { - $message = Message::factory()->create(['body' => 'Hello, world!']); +IT('HAS A BODY', FUNCTION () { + $MESSAGE = MESSAGE::FACTORY()->CREATE(['BODY' => 'HELLO, WORLD!']); - $this->assertEquals('Hello, world!', $message->body); + $THIS->ASSERTEQUALS('HELLO, WORLD!', $MESSAGE->BODY); }); -it('has a sender of user or agent', function () { - $message = Message::factory()->create(['sender' => 'user']); +IT('HAS A SENDER OF USER OR AGENT', FUNCTION () { + $MESSAGE = MESSAGE::FACTORY()->CREATE(['SENDER' => 'USER']); - $this->assertEquals('user', $message->sender); + $THIS->ASSERTEQUALS('USER', $MESSAGE->SENDER); });