Adopt PHPUnit for plugin unit tests

This commit is contained in:
ms2k 2026-08-07 01:01:58 +09:00
commit 5a16298c22

18
tests/bootstrap.php Normal file
View file

@ -0,0 +1,18 @@
<?php
namespace OPNsense\NordVPN;
class Settings
{
public object $general;
public object $managed;
public function __construct()
{
$this->general = (object)['countries' => ''];
$this->managed = (object)[
'server_country' => 'NL',
'server_hostname' => 'nl.example.invalid',
];
}
}