mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
#591 - tests
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use Tests\TestCase;
|
||||
use Tests\Traits\PrepareLoadBalancer;
|
||||
|
||||
@ -27,8 +28,9 @@ protected function setUp(): void
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider create_data
|
||||
* @param array<string, mixed> $inputs
|
||||
*/
|
||||
#[DataProvider('create_data')]
|
||||
public function test_create_site(array $inputs): void
|
||||
{
|
||||
SSH::fake();
|
||||
@ -383,10 +385,11 @@ public function test_update_env(): void
|
||||
->assertJsonFragment([
|
||||
'domain' => $site->domain,
|
||||
]);
|
||||
|
||||
SSH::assertExecuted('edit-file');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<array<array<string, mixed>>>
|
||||
*/
|
||||
public static function create_data(): array
|
||||
{
|
||||
return \Tests\Feature\SitesTest::create_data();
|
||||
|
Reference in New Issue
Block a user