File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 39
39
urls: [
40
40
@foreach ($data [' versions' ] as $version => $path )
41
41
{
42
- url: ' / {{ $data [' path' ] } } / {{ $version } }' ,
42
+ url: ' {{ url ( " { $data [' path' ]}/{ $version } " ) } }' ,
43
43
name: ' {{ $version } }' ,
44
44
},
45
45
@endforeach
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function it_provides_openapi_route_as_url()
29
29
{
30
30
$ this ->get ('swagger ' )
31
31
->assertStatus (200 )
32
- ->assertSee ('url: \'/swagger/v1 \'' , false );
32
+ ->assertSee ('url: \'http://localhost /swagger/v1 \'' , false );
33
33
}
34
34
35
35
/** @test */
@@ -46,17 +46,17 @@ public function it_supports_multiple_versions()
46
46
{
47
47
$ this ->get ('swagger-with-versions ' )
48
48
->assertStatus (200 )
49
- ->assertSee ('url: \'/swagger-with-versions/v1 \'' , false )
50
- ->assertSee ('url: \'/swagger-with-versions/v2 \'' , false );
49
+ ->assertSee ('url: \'http://localhost /swagger-with-versions/v1 \'' , false )
50
+ ->assertSee ('url: \'http://localhost /swagger-with-versions/v2 \'' , false );
51
51
}
52
52
53
53
/** @test */
54
54
public function it_supports_multiple_versions_with_sub_path ()
55
55
{
56
56
$ this ->get ('path/with/multiple/segments/swagger-with-versions ' )
57
57
->assertStatus (200 )
58
- ->assertSee ('url: \'/path/with/multiple/segments/swagger-with-versions/v1 \'' , false )
59
- ->assertSee ('url: \'/path/with/multiple/segments/swagger-with-versions/v2 \'' , false );
58
+ ->assertSee ('url: \'http://localhost /path/with/multiple/segments/swagger-with-versions/v1 \'' , false )
59
+ ->assertSee ('url: \'http://localhost /path/with/multiple/segments/swagger-with-versions/v2 \'' , false );
60
60
}
61
61
62
62
/** @test */
You can’t perform that action at this time.
0 commit comments