mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-24 10:44:55 +08:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
c207738a1b
commit
eef9a3e0c7
@@ -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' => [],
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user