Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jul 5, 2021
1 parent 60091da commit 258b973
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/GenerateDocumentationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,12 @@ public function will_not_overwrite_manually_modified_content_unless_force_flag_i
/** @test */
public function generates_correct_url_params_from_resource_routes_and_field_bindings()
{
if (version_compare($this->app->version(), '7.0.0', '<')) {
$this->markTestSkipped("Laravel < 7.x doesn't support field binding syntax.");

return;
}

RouteFacade::prefix('providers/{provider:slug}')->group(function () {
RouteFacade::resource('users.addresses', TestPartialResourceController::class)->parameters([
'addresses' => 'address:uuid',
Expand Down

0 comments on commit 258b973

Please sign in to comment.