mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
#591 - tests
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
use App\Models\SshKey;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Inertia\Testing\AssertableInertia;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SshKeysTest extends TestCase
|
||||
@ -56,9 +57,8 @@ public function test_delete_key(): void
|
||||
|
||||
/**
|
||||
* @param array<string, string> $postBody
|
||||
*
|
||||
* @dataProvider ssh_key_data_provider
|
||||
*/
|
||||
#[DataProvider('ssh_key_data_provider')]
|
||||
public function test_create_ssh_key_handles_invalid_or_partial_keys(array $postBody, bool $expectedToSucceed): void
|
||||
{
|
||||
$this->actingAs($this->user);
|
||||
|
Reference in New Issue
Block a user