Skip to content

Commit a8679b5

Browse files
tests: add test checking RoutingGatewayPriority tier change #707
1 parent c37dce9 commit a8679b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ class APIModelsRoutingGatewayGroupPriorityTestCase extends TestCase {
5858
$gateway_prio->tier->value = 3;
5959
$gateway_prio->update();
6060

61+
# Ensure the priority was actually updated
62+
$this->assert_equals(
63+
RoutingGatewayGroupPriority::query(id: $gateway_prio->id)->first()->tier->value,
64+
3
65+
);
66+
6167
# Delete the gateway group priority object and ensure it was deleted
6268
$gateway_prio->delete();
6369
$this->assert_equals(RoutingGatewayGroupPriority::read_all(parent_id: $gateway_group->id)->count(), 1);

0 commit comments

Comments
 (0)