File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -909,12 +909,11 @@ class APIModelsFirewallRuleTestCase extends TestCase {
909909 /**
910910 * Checks that the username of the client is correctly identified when replace_all is called.
911911 */
912- public function test_replace_all_retains_client_username (): void
913- {
912+ public function test_replace_all_retains_client_username (): void {
914913 # Mock the authenticated client
915914 $ client = new Auth ();
916- $ client ->username = " testuser " ;
917- $ client ->ip_address = " 127.1.2.3 " ;
915+ $ client ->username = ' testuser ' ;
916+ $ client ->ip_address = ' 127.1.2.3 ' ;
918917
919918 # Replace all firewall rules with a new set
920919 $ rule_model = new FirewallRule (client: $ client );
@@ -936,7 +935,7 @@ class APIModelsFirewallRuleTestCase extends TestCase {
936935 'destination ' => 'any ' ,
937936 'descr ' => 'test description 2 ' ,
938937 ],
939- ]
938+ ],
940939 );
941940
942941 # Ensure the client username and IP are correctly set in the new rules
You can’t perform that action at this time.
0 commit comments