mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
#591 - tests
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use Tests\TestCase;
|
||||
|
||||
class StorageProvidersTest extends TestCase
|
||||
@ -17,8 +18,9 @@ class StorageProvidersTest extends TestCase
|
||||
use RefreshDatabase;
|
||||
|
||||
/**
|
||||
* @dataProvider createData
|
||||
* @param array<string, mixed> $input
|
||||
*/
|
||||
#[DataProvider('createData')]
|
||||
public function test_create(array $input): void
|
||||
{
|
||||
Sanctum::actingAs($this->user, ['read', 'write']);
|
||||
@ -106,7 +108,7 @@ public function test_cannot_delete_provider(): void
|
||||
}
|
||||
|
||||
/**
|
||||
* @TODO: complete FTP tests
|
||||
* @return array<int, array<int, array<string, mixed>>>
|
||||
*/
|
||||
public static function createData(): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user