We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc8874 commit 1c90611Copy full SHA for 1c90611
1 file changed
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsWireGuardSettingsTestCase.inc
@@ -19,12 +19,12 @@ class APIModelsWireGuardSettingsTestCase extends TestCase {
19
# Enable WireGuard and ensure the service is running
20
$wg = new WireGuardSettings(enable: true, async: false);
21
$wg->update(apply: true);
22
- $this->assert_is_true(Service::query(name: 'wireguard', status: true)->exists());
+ $this->assert_is_true(is_service_running('wireguard'));
23
24
# Disable WireGuard and ensure the service is stopped
25
$wg->enable->value = false;
26
27
- $this->assert_is_true(Service::query(name: 'wireguard', status: false)->exists());
+ $this->assert_is_false(is_service_running('wireguard'));
28
}
29
30
/**
0 commit comments