Skip to content

Commit

Permalink
Add docs test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyWendt committed Feb 24, 2019
1 parent fbec83b commit 9eea934
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function boot()
*/
public function register()
{
//
if (env('DISABLE_MIDDLEWARE', false)) {
$this->app->instance('middleware.disable', true);
}
}
}
5 changes: 5 additions & 0 deletions bin/docs-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

echo "DISABLE_MIDDLEWARE=true" >> .env
./node_modules/.bin/dredd --config ./tests/Dredd/v1/dredd.v1.yml
sed -i '' '/DISABLE_MIDDLEWARE=true/d' ./.env
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",
"ddelnano/dredd-hooks-php": "^1.1",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
Expand Down
50 changes: 49 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/Dredd/v1/dredd.v2.yml → tests/Dredd/v1/dredd.v1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dry-run: null
hookfiles: tests/Dredd/v2/hookfile.v2.php
hookfiles: tests/Dredd/v1/hookfile.v1.php
language: vendor/bin/dredd-hooks-php
require: null
server: null
Expand Down Expand Up @@ -30,5 +30,5 @@ hooks-worker-term-retry: 500
hooks-worker-handler-host: 127.0.0.1
hooks-worker-handler-port: 61321
config: ./dredd.yml
blueprint: documentation/v2/swagger_v2.json
endpoint: 'http://fuse-core.test'
blueprint: documentation/v1/swagger_v2.json
endpoint: 'http://127.0.0.1:8000'
File renamed without changes.

0 comments on commit 9eea934

Please sign in to comment.