Skip to content

Commit 9f9e823

Browse files
authored
Merge pull request #65 from andreaselia/fix/export-path
Update export path to full path
2 parents 9583758 + eab575b commit 9f9e823

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/ExportPostmanCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function handle(): void
177177

178178
Storage::disk($this->config['disk'])->put($exportName = "postman/$this->filename", json_encode($this->structure));
179179

180-
$this->info("Postman Collection Exported: $exportName");
180+
$this->info('Postman Collection Exported: '.storage_path('app/'.$exportName));
181181
}
182182

183183
protected function getReflectionMethod(array $routeAction): ?object

tests/Feature/ExportPostmanTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function test_rules_printing_export_to_human_readable_works()
190190
$this->assertCount(1, $fields->where('key', 'field_2')->where('description', 'The field 2 field is required., The field 2 must be an integer.'));
191191
$this->assertCount(1, $fields->where('key', 'field_3')->where('description', '(Optional), The field 3 must be an integer.'));
192192
$this->assertCount(1, $fields->where('key', 'field_4')->where('description', '(Nullable), The field 4 must be an integer.'));
193-
$this->assertCount(1, $fields->where('key', 'field_5')->where('description', 'The field 5 field is required., The field 5 must be an integer., The field 5 must not be greater than 30., The field 5 must be at least 1.'));
193+
$this->assertCount(1, $fields->where('key', 'field_5')->where('description', 'The field 5 field is required., The field 5 must be an integer., The field 5 may not be greater than 30., The field 5 must be at least 1.'));
194194

195195
/** This looks bad, but this is the default message in lang/en/validation.php, you can update to:.
196196
*

0 commit comments

Comments
 (0)