Skip to content

Commit c23bc8a

Browse files
committed
revert: test: use string based invocations
1 parent 0e59bde commit c23bc8a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/Integration/Vite/ViteInstallerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
use PHPUnit\Framework\Attributes\PostCondition;
66
use PHPUnit\Framework\Attributes\PreCondition;
77
use PHPUnit\Framework\Attributes\Test;
8+
use Tempest\Core\Commands\InstallCommand;
89
use Tempest\Support\Filesystem;
910
use Tempest\Support\Namespace\Psr4Namespace;
11+
use Tempest\Vite\Installer\ViteInstaller;
1012
use Tests\Tempest\Integration\FrameworkIntegrationTestCase;
1113

1214
final class ViteInstallerTest extends FrameworkIntegrationTestCase
@@ -33,7 +35,7 @@ protected function cleanup(): void
3335
#[Test]
3436
public function intalls_vite(): void
3537
{
36-
$this->console->call('install vite --force');
38+
$this->console->call(InstallCommand::class, [ViteInstaller::class, '--tailwindcss=false', '--force']);
3739

3840
$this->installer->assertFileExists('vite.config.ts');
3941
$this->installer->assertFileExists('app/main.entrypoint.ts');
@@ -45,7 +47,7 @@ public function intalls_vite(): void
4547
#[Test]
4648
public function intalls_tailwindcss(): void
4749
{
48-
$this->console->call('install vite --tailwindcss --force');
50+
$this->console->call(InstallCommand::class, [ViteInstaller::class, '--tailwindcss', '--force']);
4951

5052
$this->installer->assertFileExists('app/main.entrypoint.ts');
5153

0 commit comments

Comments
 (0)