Skip to content

Commit feb0bfb

Browse files
test(SystemTimezone): add newlines to expected zoneinfo output
1 parent a22f156 commit feb0bfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class APIModelsSystemTimezoneTestCase extends TestCase {
1616

1717
# Ensure the timezone was updated correctly
1818
$zoneinfo = file_get_contents('/var/db/zoneinfo');
19-
$this->assert_equals($zoneinfo, 'America/Denver');
19+
$this->assert_equals($zoneinfo, 'America/Denver'.PHP_EOL);
2020

2121
# Update the timezone again
2222
$timezone = new SystemTimezone(timezone: 'UTC');
2323
$timezone->update();
2424

2525
# Ensure the timezone was updated correctly
2626
$zoneinfo = file_get_contents('/var/db/zoneinfo');
27-
$this->assert_equals($zoneinfo, 'UTC');
27+
$this->assert_equals($zoneinfo, 'UTC'.PHP_EOL);
2828
}
2929

3030
/**

0 commit comments

Comments
 (0)