Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhall17 committed Apr 25, 2021
1 parent e9c28f2 commit 23b39e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/UuidTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public function a_model_can_create_with_a_primary_uuid_key()
$test->name = 'Primary Unit Test';
$test->save();

$this->assertDatabaseHas('primary_tests', $test->toArray());
$this->assertDatabaseHas('primary_tests', $test->getAttributes());

$retreived_test = PrimaryTest::whereName('Primary Unit Test')->first();

$this->assertTrue($retreived_test->id != '');
}

Expand All @@ -29,10 +29,10 @@ public function a_model_can_create_a_uuid_on_save()
$test->name = 'Unit Test';
$test->save();

$this->assertDatabaseHas('tests', $test->toArray());
$this->assertDatabaseHas('tests', $test->getAttributes());

$retreived_test = Test::whereName('Unit Test')->first();

$this->assertTrue($retreived_test->uuid != '');
}
}

0 comments on commit 23b39e1

Please sign in to comment.