20 lines
578 B
PHP
20 lines
578 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Symfony\Component\Process\Process;
|
|
use Tests\TestCase;
|
|
|
|
class UiComponentsTest extends TestCase
|
|
{
|
|
public function test_foundational_ui_component_behaviour(): void
|
|
{
|
|
$process = new Process(['node', 'tests/Fixtures/ui-components.mjs'], base_path());
|
|
$process->setTimeout(60);
|
|
$process->run();
|
|
|
|
$this->assertTrue($process->isSuccessful(), $process->getOutput().$process->getErrorOutput());
|
|
$this->assertStringContainsString('UI component behavior checks passed.', $process->getOutput());
|
|
}
|
|
}
|