Adopt PHPUnit for plugin unit tests
This commit is contained in:
parent
7c4f4ffe0d
commit
5a16298c22
1 changed files with 2038 additions and 190 deletions
18
tests/bootstrap.php
Normal file
18
tests/bootstrap.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue