Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Aug 3, 2021
1 parent 76380cf commit e7de665
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Integration/Routing/UrlSigningTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ public function testSigningUrlWithCustomRouteSlug()
return ['slug' => $slug, 'valid' => $request->hasValidSignature() ? 'valid' : 'invalid'];
})->name('foo');

$this->assertIsString($url = URL::signedRoute('foo', ['post' => new RoutableInterfaceStub]));
$model = new RoutableInterfaceStub;
$model->routable = 'routable';

$this->assertIsString($url = URL::signedRoute('foo', ['post' => $model]));
$this->assertSame('valid', $this->get($url)->original['valid']);
$this->assertSame('routable-slug', $this->get($url)->original['slug']);
}
Expand Down

0 comments on commit e7de665

Please sign in to comment.