Apply fixes from StyleCI

This commit is contained in:
Marcel Pociot
2019-10-25 19:16:27 +00:00
committed by StyleCI Bot
parent c207738a1b
commit eef9a3e0c7
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ class PostmanCollectionWriter
'name' => $groupName,
'description' => '',
'item' => $routes->map(function ($route) {
$mode = "raw";
$mode = 'raw';
return [
'name' => $route['metadata']['title'] != '' ? $route['metadata']['title'] : url($route['uri']),
@@ -74,7 +74,7 @@ class PostmanCollectionWriter
->values()->all(),
'body' => [
'mode' => $mode,
$mode => json_encode($route['cleanBodyParameters'], JSON_PRETTY_PRINT)
$mode => json_encode($route['cleanBodyParameters'], JSON_PRETTY_PRINT),
],
'description' => $route['metadata']['description'],
'response' => [],

View File

@@ -292,7 +292,7 @@ class GenerateDocumentationTest extends TestCase
$generatedCollection = json_decode(file_get_contents(__DIR__.'/../public/docs/collection.json'), true);
// The Postman ID varies from call to call; erase it to make the test data reproducible.
$generatedCollection['info']['_postman_id'] = '';
$fixtureCollection = json_decode(file_get_contents(__DIR__ . '/Fixtures/collection_custom_url.json'), true);
$fixtureCollection = json_decode(file_get_contents(__DIR__.'/Fixtures/collection_custom_url.json'), true);
$this->assertEquals($fixtureCollection, $generatedCollection);
}