Command (Tests\Feature\Playground\Admin\Resource\Console\Commands\About\Command) [x] Command about displays package information and succeed with code 0 Create Request (Tests\Unit\Playground\Admin\Resource\Http\Requests\Setting\CreateRequest) [x] Request instance Create Request (Tests\Unit\Playground\Admin\Resource\Http\Requests\User\CreateRequest) [x] Request instance [x] Return playground rules [x] Return laravel rules Edit Request (Tests\Unit\Playground\Admin\Resource\Http\Requests\User\EditRequest) [x] Request instance [x] Return playground rules [x] Return laravel rules Index Route (Tests\Feature\Playground\Admin\Resource\Http\Controllers\Playground\IndexRoute) [x] Guest cannot render index view [x] Admin can render index view Instance (Tests\Feature\Playground\Admin\Resource\Http\Requests\FormRequest\Instance) [x] FormRequest authorize with admin Instance (Tests\Unit\Playground\Admin\Resource\Http\Controllers\UserController\Instance) [x] UserProvidergetUserClass with invalid user class Instance (Tests\Unit\Playground\Admin\Resource\Http\Requests\FormRequest\Instance) [x] FormRequest authorize without user [x] RULES is empty by default [x] UserHasAdminPrivileges without user [x] UserHasAdminPrivileges with admin [x] UserHasAdminPrivileges with default laravel user Instance (Tests\Unit\Playground\Admin\Resource\ServiceProvider\Instance) [x] Version matches [x] SetPolicies with empty array [x] SetPolicies with invalid model [x] SetPolicies with invalid policy Policy (Tests\Unit\Playground\Admin\Resource\Policies\SettingPolicy\Policy) [x] Policy instance Setting Route (Tests\Feature\Playground\Admin\Resource\Http\Controllers\Playground\SettingRoute) [x] Guest cannot render index view [x] Json guest cannot see info [x] Guest cannot render show view [x] Json guest cannot destroy [x] Guest cannot destroy [x] Guest cannot lock [x] Json guest cannot restore [x] Guest cannot restore [x] Guest cannot render create view [x] Guest cannot render edit view [x] Json guest cannot get index [x] Json guest cannot lock [x] Json guest cannot unlock [x] Guest cannot unlock [x] Json guest cannot get create info [x] Json guest cannot get edit info [x] Guest cannot store [x] Json guest cannot store [x] Admin can render index view [x] Json guest cannot update [x] Guest cannot update [x] Admin can render create view [x] Json admin can get index [x] Json show info for admin [x] Show view rendered by admin [x] Json admin can get create info [x] Admin can render edit view [x] Json admin can get edit info [x] Json destroy as admin and succeed [x] Destroy as admin and succeed [x] Lock as admin and succeed [x] Store as admin without payload and fail validation [x] Json restore as admin and succeed [x] Restore as admin and succeed [x] Admin can render create view with return url [x] Json update as admin without payload and fail validation [x] Update as admin without payload and fail validation [x] Json lock as admin and succeed [x] Json store as admin without payload and fail validation [x] Json unlock as admin and succeed [x] Unlock as admin and succeed [x] Json get create info as admin with invalid parameter and fail validation [x] Admin can render edit view with return url [x] Admin can render index view with filters [x] Json admin can get index with filters [x] Json edit as admin and fail validation with invalid parameter [x] Store as admin and succeed [x] Json admin can update [x] Admin can update [x] Create view as admin with invalid parameter and fail validation and redirect [x] Json store as admin and succeed [x] Lock as admin and succeed with redirect to index with sorted by locked desc [x] Destroy as admin and succeed with force delete [x] Json lock as admin and succeed with no redirect [x] Json destroy as admin and succeed with force delete [x] Json restore as admin and succeed with no redirect [x] Restore as admin and succeed with redirect to index with only trash [x] Json unlock as admin and succeed with no redirect [x] Edit view as admin with invalid parameter and fail validation and redirect [x] Unlock as admin and succeed with redirect to index with sorted by unlocked desc [x] Destroy as admin and succeed with redirect to index with trash [x] Json destroy as admin and succeed with no content [x] Lock as user and get denied [x] Admin can update view with return url [x] Store as admin and succeed with return url [x] Json lock as user and get denied [x] Json restore as user and get denied [x] Json unlock as user and get denied [x] Restore as user and get denied [x] Unlock as user and get denied [x] Json destroy as admin and succeed and ignore redirect [x] Destroy as user and get denied and no force delete allowed [x] Json destroy as user and get denied and no force delete allowed Store Request (Tests\Unit\Playground\Admin\Resource\Http\Requests\User\StoreRequest) [x] Request instance [x] Return playground rules [x] Return laravel rules [x] PrepareForValidation for laravel [x] PrepareForValidation for playground [x] PrepareForValidation parameters Update Request (Tests\Unit\Playground\Admin\Resource\Http\Requests\User\UpdateRequest) [x] Request instance [x] Return playground rules [x] Return laravel rules [x] PrepareForValidation for laravel [x] PrepareForValidation for playground [x] PrepareForValidation parameters User Route (Tests\Feature\Playground\Admin\Resource\Http\Controllers\Playground\UserRoute) [x] Guest cannot render index view [x] Json guest cannot see info [x] Guest cannot render show view [x] Json guest cannot destroy [x] Guest cannot destroy [x] Guest cannot lock [x] Json guest cannot restore [x] Guest cannot restore [x] Guest cannot render create view [x] Guest cannot render edit view [x] Json guest cannot get index [x] Json guest cannot lock [x] Json guest cannot unlock [x] Guest cannot unlock [x] Json guest cannot get create info [x] Json guest cannot get edit info [x] Guest cannot store [x] Json guest cannot store [x] Admin can render index view [x] Json guest cannot update [x] Guest cannot update [x] Admin can render create view [x] Json admin can get index [x] Json show info for admin [x] Show view rendered by admin [x] Json admin can get create info [x] Admin can render edit view [x] Json admin can get edit info [x] Json destroy as admin and succeed [x] Destroy as admin and succeed [x] Lock as admin and succeed [x] Store as admin without payload and fail validation [x] Json restore as admin and succeed [x] Restore as admin and succeed [x] Admin can render create view with return url [x] Json update as admin without payload and fail validation [x] Update as admin without payload and fail validation [x] Json lock as admin and succeed [x] Json store as admin without payload and fail validation [x] Json unlock as admin and succeed [x] Unlock as admin and succeed [x] Json get create info as admin with invalid parameter and fail validation [x] Admin can render edit view with return url [x] Admin can render index view with filters [x] Json admin can get index with filters [x] Json edit as admin and fail validation with invalid parameter [x] Store as admin and succeed [x] Json admin can update [x] Admin can update [x] Create view as admin with invalid parameter and fail validation and redirect [x] Json store as admin and succeed [x] Lock as admin and succeed with redirect to index with sorted by locked desc [x] Destroy as admin and succeed with force delete [x] Json lock as admin and succeed with no redirect [x] Json destroy as admin and succeed with force delete [x] Json restore as admin and succeed with no redirect [x] Restore as admin and succeed with redirect to index with only trash [x] Json unlock as admin and succeed with no redirect [x] Edit view as admin with invalid parameter and fail validation and redirect [x] Unlock as admin and succeed with redirect to index with sorted by unlocked desc [x] Destroy as admin and succeed with redirect to index with trash [x] Json destroy as admin and succeed with no content [x] Lock as user and get denied [x] Admin can update view with return url [x] Store as admin and succeed with return url [x] Json lock as user and get denied [x] Json restore as user and get denied [x] Json unlock as user and get denied [x] Restore as user and get denied [x] Unlock as user and get denied [x] Json destroy as admin and succeed and ignore redirect [x] Destroy as user and get denied and no force delete allowed [x] Json destroy as user and get denied and no force delete allowed