Parcourir la source

Fix getting Postman base URL

shalvah il y a 4 ans
Parent
commit
c0837c9f7d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tests/Unit/PostmanCollectionWriterTest.php

+ 1 - 1
tests/Unit/PostmanCollectionWriterTest.php

@@ -15,7 +15,7 @@ class PostmanCollectionWriterTest extends TestCase
 
     public function testCorrectStructureIsFollowed()
     {
-        $config = ['title' => 'Test API', 'description' => 'A fake description'];
+        $config = ['title' => 'Test API', 'description' => 'A fake description', 'base_url' => 'http://localhost'];
 
         $writer = new PostmanCollectionWriter(new DocumentationConfig($config));
         $collection = $writer->generatePostmanCollection(new Collection());