From 23b39e10672ec3176409660724301b851c3011a2 Mon Sep 17 00:00:00 2001 From: Colin Hall Date: Sun, 25 Apr 2021 11:23:38 +0100 Subject: [PATCH] Fix Tests --- tests/Unit/UuidTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Unit/UuidTest.php b/tests/Unit/UuidTest.php index 8be26be..fd47ba3 100644 --- a/tests/Unit/UuidTest.php +++ b/tests/Unit/UuidTest.php @@ -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 != ''); } @@ -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 != ''); } }