File manager - Edit - /var/www/html/gop/api/tests/Feature/ArquivoTest.php
Back
<?php namespace Tests\Feature; use App\Models\Arquivo; use Illuminate\Http\JsonResponse; use Tests\BaseTest; class ArquivoTest extends BaseTest { public function test_index() { $arquivos = Arquivo::factory(5)->create(); $this->authRequest( 'get', route('arquivo.index'), ); foreach ($arquivos as $arquivo) { $this->removeTestFiles($arquivo->path); } } public function test_show() { $arquivo = Arquivo::factory()->create(); $this->authRequest( 'get', route('arquivo.show', $arquivo->id), ); $this->removeTestFiles($arquivo->path); } public function test_destroy() { $arquivo = Arquivo::factory()->create(); $this->authRequest( 'delete', route('arquivo.destroy', $arquivo->id), JsonResponse::HTTP_NO_CONTENT, ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings