Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
wychoong committed Sep 13, 2024
1 parent 152b756 commit 6c2e0bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core/Unit/Base/Traits/HasModelExtendingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ function () {
);

expect((new \Lunar\Tests\Core\Stubs\Models\CustomProduct)->getMorphClass())
->toBe('product')
->and(\Lunar\Tests\Core\Stubs\Models\CustomProduct::morphName())
->toBe('product')
->and((new Product)->getMorphClass())
->toBe('product')
->and(Product::morphName())
->toBe('product');
});

0 comments on commit 6c2e0bc

Please sign in to comment.