Skip to content

Commit

Permalink
Fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DaltonMcCleery committed Jul 10, 2024
1 parent 694b6f2 commit 07472ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RemoteModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function bootRemoteModel(): void
public function getEndpoint(): ?string
{
if (! $this->endpoint) {
$this->endpoint = Str::of($this::class)
$this->endpoint = '/' . Str::of($this::class)
->afterLast('\\')
->slug()
->value();
Expand Down
2 changes: 1 addition & 1 deletion tests/RemoteModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

it('loads data via pagination', function () {
Http::fake([
'yourdomain.com' . mockApiPath(endpoint: '/celebrity') => Http::sequence()
'*' . mockApiPath(endpoint: '/celebrity') => Http::sequence()
// Initial schema call.
->push([
'total' => 2,
Expand Down

0 comments on commit 07472ec

Please sign in to comment.