Browse Source

Fix tests

shalvah 5 years ago
parent
commit
3f3c509317
1 changed files with 2 additions and 4 deletions
  1. 2 4
      tests/Unit/PostmanCollectionWriterTest.php

+ 2 - 4
tests/Unit/PostmanCollectionWriterTest.php

@@ -11,14 +11,12 @@ class PostmanCollectionWriterTest extends TestCase
 {
     public function testNameIsPresentInCollection()
     {
-        \Config::set('scribe.postman', [
-            'name' => 'Test collection',
-        ]);
+        \Config::set('scribe.title', 'Test API');
 
         $writer = new PostmanCollectionWriter(new Collection(), '');
         $collection = $writer->getCollection();
 
-        $this->assertSame('Test collection', json_decode($collection)->info->name);
+        $this->assertSame('Test API', json_decode($collection)->info->name);
     }
 
     public function testFallbackCollectionNameIsUsed()