mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-31 19:03:43 +01:00
16 lines
540 B
PHP
16 lines
540 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use XcVm\Core\Process\ProcessRunner;
|
|
|
|
final class EpgForceReloadTest extends TestCase {
|
|
public function testTopbarReloadSendsTheRequestAndHandlesFailures(): void {
|
|
[$rNodeExit] = ProcessRunner::capture(['node', '--version']);
|
|
if ($rNodeExit !== 0) {
|
|
$this->markTestSkipped('Node.js is required to exercise the EPG reload handler.');
|
|
}
|
|
[$rExit, $rOutput] = ProcessRunner::capture(['node', dirname(__DIR__) . '/Support/epg-force-reload.cjs']);
|
|
$this->assertSame(0, $rExit, $rOutput);
|
|
}
|
|
}
|