Skip to content

Commit 22b8fa9

Browse files
committed
fix: adapt the tests to change the chmod of the unreadable file
1 parent e022214 commit 22b8fa9

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

composer.lock

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test-plugin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
*/
1111
class WP_HTTP_BLOCKLIST extends WP_UnitTestCase {
1212

13+
public static function tearDownAfterClass(): void {
14+
chmod( TEST_DIR . '/blocklist_unreadable.txt', 0755 );
15+
}
16+
1317
/**
1418
* A single example test.
1519
*/

0 commit comments

Comments
 (0)