Reject ambiguous inverted enrollment selectors
This commit is contained in:
parent
b4a30ca190
commit
707b060501
1 changed files with 40 additions and 0 deletions
|
|
@ -84,6 +84,12 @@ final class StoreAndInspectorTest extends TestCase
|
|||
$this->assertTrue($inspector->includesPrivateDestinations('10.0.0.0/8', true));
|
||||
}
|
||||
|
||||
public function testInversionRequiresOneNativeSelector(): void
|
||||
{
|
||||
$this->assertTrue(EnrollmentInspector::inversionIsUnambiguous('network_group'));
|
||||
$this->assertFalse(EnrollmentInspector::inversionIsUnambiguous('private,relay'));
|
||||
}
|
||||
|
||||
public function testStatusWritesAtomicallyAndRetainsDefaults(): void
|
||||
{
|
||||
$path = sys_get_temp_dir() . '/nordvpn-status-' . bin2hex(random_bytes(8)) . '.json';
|
||||
|
|
|
|||
Loading…
Reference in a new issue