diff --git a/tests/CustomerTest.php b/tests/CustomerTest.php new file mode 100644 index 0000000..3dbc855 --- /dev/null +++ b/tests/CustomerTest.php @@ -0,0 +1,30 @@ +assertEquals(Customer::class, get_class($customer)); + $this->assertObjectHasAttribute('id', $customer); + $this->assertObjectHasAttribute('email', $customer); + $this->assertObjectHasAttribute('phone', $customer); + $this->assertObjectHasAttribute('note', $customer); + } + + /** @test */ + public function it_can_instantiate_via_a_static_create_method() + { + $customer = Customer::create(); + + $this->assertEquals(Customer::class, get_class($customer)); + $this->assertObjectHasAttribute('id', $customer); + $this->assertObjectHasAttribute('email', $customer); + $this->assertObjectHasAttribute('phone', $customer); + $this->assertObjectHasAttribute('note', $customer); + } +} \ No newline at end of file