From 353542d95909053279b659a39dc91587f4498335 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Wed, 29 Nov 2023 15:12:39 -0800 Subject: [PATCH] PG-23 (#4) v73.0.0 --- .github/workflows/ci.yml | 6 +- README.md | 4 +- phpunit.xml.dist | 22 +- src/Http/Requests/Backlog/DestroyRequest.php | 12 - src/Http/Requests/Board/DestroyRequest.php | 12 - src/Http/Requests/Epic/DestroyRequest.php | 12 - src/Http/Requests/Flow/DestroyRequest.php | 12 - .../Requests/Milestone/DestroyRequest.php | 12 - src/Http/Requests/Note/DestroyRequest.php | 12 - src/Http/Requests/Project/DestroyRequest.php | 12 - src/Http/Requests/Release/DestroyRequest.php | 12 - src/Http/Requests/Roadmap/DestroyRequest.php | 12 - src/Http/Requests/Source/DestroyRequest.php | 12 - src/Http/Requests/Sprint/DestroyRequest.php | 12 - src/Http/Requests/Tag/DestroyRequest.php | 12 - src/Http/Requests/Team/DestroyRequest.php | 12 - src/Http/Requests/Ticket/DestroyRequest.php | 12 - src/Http/Requests/Version/DestroyRequest.php | 12 - tests/logs/.gitignore | 3 - tests/logs/coverage.txt | 7 - tests/logs/testdox.txt | 282 ------------------ 21 files changed, 17 insertions(+), 487 deletions(-) delete mode 100644 tests/logs/.gitignore delete mode 100644 tests/logs/coverage.txt delete mode 100644 tests/logs/testdox.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1349d42..14bfe5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Playground Matrix tests +name: 'Tests: Playground Matrix Resource' on: push: @@ -26,16 +26,18 @@ jobs: with: php_extensions: xdebug coverage_clover: clover.xml + coverage_text: true - name: Make code coverage badge uses: timkrase/phpunit-coverage-badge@v1.2.1 with: + report: clover.xml coverage_badge_path: output/coverage.svg push_badge: false - name: Git push to image-data branch uses: peaceiris/actions-gh-pages@v3 with: publish_dir: ./output - publish_branch: image-data + publish_branch: testing/develop github_token: ${{ secrets.GITHUB_TOKEN }} user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' diff --git a/README.md b/README.md index ea3792e..ebda250 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Playground Matrix Resource -[![Test Coverage](https://raw.githubusercontent.com/gammamatrix/playground-matrix-resource/image-data/coverage.svg)](tests/logs/coverage.txt) -[![Playground CI Workflow](https://github.com/gammamatrix/playground-matrix-resource/actions/workflows/ci.yml/badge.svg?)](tests/logs/testdox.txt) +[![Playground CI Workflow](https://github.com/gammamatrix/playground-matrix-resource/actions/workflows/ci.yml/badge.svg?branch=develop)](https://raw.githubusercontent.com/gammamatrix/playground-matrix-resource/testing/develop/testdox.txt) +[![Test Coverage](https://raw.githubusercontent.com/gammamatrix/playground-matrix-resource/testing/develop/coverage.svg)](tests) The `playground-matrix-resource` Laravel package. diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3892203..6121002 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -37,20 +37,20 @@ ignoreDeprecatedCodeUnits="true" disableCodeCoverageIgnore="true"> - - - - - - - + + + + + + + - - - - + + + + diff --git a/src/Http/Requests/Backlog/DestroyRequest.php b/src/Http/Requests/Backlog/DestroyRequest.php index f804a8d..eb51ebc 100644 --- a/src/Http/Requests/Backlog/DestroyRequest.php +++ b/src/Http/Requests/Backlog/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Board/DestroyRequest.php b/src/Http/Requests/Board/DestroyRequest.php index 8167909..19e9187 100644 --- a/src/Http/Requests/Board/DestroyRequest.php +++ b/src/Http/Requests/Board/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Epic/DestroyRequest.php b/src/Http/Requests/Epic/DestroyRequest.php index 7d9302d..c0083e7 100644 --- a/src/Http/Requests/Epic/DestroyRequest.php +++ b/src/Http/Requests/Epic/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Flow/DestroyRequest.php b/src/Http/Requests/Flow/DestroyRequest.php index 070fb3a..7922376 100644 --- a/src/Http/Requests/Flow/DestroyRequest.php +++ b/src/Http/Requests/Flow/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Milestone/DestroyRequest.php b/src/Http/Requests/Milestone/DestroyRequest.php index 0b932fb..9fba8bf 100644 --- a/src/Http/Requests/Milestone/DestroyRequest.php +++ b/src/Http/Requests/Milestone/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Note/DestroyRequest.php b/src/Http/Requests/Note/DestroyRequest.php index bb7ac17..16be9ac 100644 --- a/src/Http/Requests/Note/DestroyRequest.php +++ b/src/Http/Requests/Note/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Project/DestroyRequest.php b/src/Http/Requests/Project/DestroyRequest.php index 5b24977..726755b 100644 --- a/src/Http/Requests/Project/DestroyRequest.php +++ b/src/Http/Requests/Project/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Release/DestroyRequest.php b/src/Http/Requests/Release/DestroyRequest.php index f1625e2..731c4f2 100644 --- a/src/Http/Requests/Release/DestroyRequest.php +++ b/src/Http/Requests/Release/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Roadmap/DestroyRequest.php b/src/Http/Requests/Roadmap/DestroyRequest.php index c24e2c3..5509bb1 100644 --- a/src/Http/Requests/Roadmap/DestroyRequest.php +++ b/src/Http/Requests/Roadmap/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Source/DestroyRequest.php b/src/Http/Requests/Source/DestroyRequest.php index 9770ef1..e3c0b73 100644 --- a/src/Http/Requests/Source/DestroyRequest.php +++ b/src/Http/Requests/Source/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Sprint/DestroyRequest.php b/src/Http/Requests/Sprint/DestroyRequest.php index 786c2d4..ce36031 100644 --- a/src/Http/Requests/Sprint/DestroyRequest.php +++ b/src/Http/Requests/Sprint/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Tag/DestroyRequest.php b/src/Http/Requests/Tag/DestroyRequest.php index 9d17162..8ae0fa6 100644 --- a/src/Http/Requests/Tag/DestroyRequest.php +++ b/src/Http/Requests/Tag/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Team/DestroyRequest.php b/src/Http/Requests/Team/DestroyRequest.php index 836555b..76bcc1a 100644 --- a/src/Http/Requests/Team/DestroyRequest.php +++ b/src/Http/Requests/Team/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Ticket/DestroyRequest.php b/src/Http/Requests/Ticket/DestroyRequest.php index 1d1ff63..58a0aac 100644 --- a/src/Http/Requests/Ticket/DestroyRequest.php +++ b/src/Http/Requests/Ticket/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/src/Http/Requests/Version/DestroyRequest.php b/src/Http/Requests/Version/DestroyRequest.php index ff505f8..817d231 100644 --- a/src/Http/Requests/Version/DestroyRequest.php +++ b/src/Http/Requests/Version/DestroyRequest.php @@ -31,16 +31,4 @@ public function rules(): array return $rules; } - - /** - * Prepare the data for validation. - * - * @return void - */ - protected function prepareForValidation() - { - if (method_exists($this, 'prepareForValidationForSlug')) { - $this->prepareForValidationForSlug(); - } - } } diff --git a/tests/logs/.gitignore b/tests/logs/.gitignore deleted file mode 100644 index a1b4118..0000000 --- a/tests/logs/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/logs/* -!/logs/coverage.txt -!/logs/testdox.txt diff --git a/tests/logs/coverage.txt b/tests/logs/coverage.txt deleted file mode 100644 index d197b4d..0000000 --- a/tests/logs/coverage.txt +++ /dev/null @@ -1,7 +0,0 @@ - - -Code Coverage Report Summary: - Classes: 1.90% (2/105)  - Methods: 21.15% (70/331)  - Lines: 28.53% (1186/4157) - diff --git a/tests/logs/testdox.txt b/tests/logs/testdox.txt deleted file mode 100644 index 37a3026..0000000 --- a/tests/logs/testdox.txt +++ /dev/null @@ -1,282 +0,0 @@ -Backlog Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\BacklogRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Board Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\BoardRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Create Request (Tests\Unit\GammaMatrix\Playground\Matrix\Resource\Http\Requests\Backlog\CreateRequest) - [x] Request instance - -Epic Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\EpicRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Flow Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\FlowRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Milestone Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\MilestoneRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Note Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\NoteRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Policy (Tests\Unit\GammaMatrix\Playground\Matrix\Resource\Policies\BacklogPolicy\Policy) - [x] Policy instance - -Project Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\ProjectRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Release Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\ReleaseRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Roadmap Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\RoadmapRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Source Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\SourceRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Sprint Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\SprintRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Tag Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\TagRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Team Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\TeamRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Ticket Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\TicketRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete - -Trait (Tests\Unit\GammaMatrix\Playground\Matrix\Resource\ServiceProviderTrait\Trait) - [x] SetPolicyNamespace with invalid value - [x] SetPolicyNamespace with app namespace - [x] RegisterPolicies getRegister with empty policy namespace - [x] RegisterPolicies getRegister with app policy namespace - -Version Route (Tests\Feature\GammaMatrix\Playground\Matrix\Resource\Http\Controllers\VersionRoute) - [x] Guest cannot render create view - [x] Guest cannot render edit view - [x] Destroy as guest and fail authorization - [x] User can render create view with return url - [x] User can render edit view with return url - [x] Create with user using json - [x] Destroy as standard user and succeed - [x] Edit with user using json - [x] User can render create view with invalid parameter - [x] User can render edit view with invalid parameter - [x] Destroy as standard user and succeed with force delete - [x] Destroy as standard user using json and succeed with no content - [x] Destroy as standard user and succeed with redirect to index with trash - [x] Destroy as role user get denied and no force delete allowed - [x] Destroy as role admin and succeed - [x] Destroy as role admin and succeed with force delete -