This commit is contained in:
Saeed Vaziry
2025-06-04 19:04:02 +02:00
parent 35894003f5
commit f8f8d57fe2
31 changed files with 165 additions and 171 deletions

View File

@ -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);