Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
warrickbayman committed Mar 8, 2021
1 parent 43aded5 commit 65fe63a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/IsPresentableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,16 @@ public function presentables_are_included_in_the_model_array(): void
],
], $user->toArray());
}

/**
* @test
**/
public function it_will_return_null_if_presentable_method_doesnt_exist()
{
$user = new User([
'name' => 'Test User',
]);

self::assertNull($user->present()->nothing);
}
}

0 comments on commit 65fe63a

Please sign in to comment.