Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

placeholder #3

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Models/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
6 changes: 3 additions & 3 deletions tests/Unit/ArtifactTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
12 changes: 6 additions & 6 deletions tests/Unit/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});