Skip to content

Commit 34a7ac3

Browse files
test: change dry_run structure in SystemUpdate test
1 parent 49b52f9 commit 34a7ac3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsSystemUpdateTestCase.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class APIModelsSystemUpdateTestCase extends TestCase {
1212
public function test_validate_dry_run_field(): void {
1313
$this->assert_does_not_throw(
1414
callable: function () {
15-
$update = new SystemUpdate(data: ['dry_run' => true]);
16-
$update->validate();
17-
$this->assert_is_true($update->dry_run->value);
15+
$update = new SystemUpdate(dry_run: true);
16+
$this->assert_is_true($update->dry_run);
17+
$update->create();
1818
},
1919
);
2020
}

0 commit comments

Comments
 (0)