Skip to content

Commit 8c9aeea

Browse files
committed
Clear cache before each test
1 parent 32dd392 commit 8c9aeea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/ITTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
* Integration test helper trait
77
*/
88
trait ITTrait {
9+
public function setUp(): void {
10+
$this->wpCli( [ 'wp2static', 'delete_all_cache', '--force' ] );
11+
}
12+
913
public function wpCli( array $args, array $expect_warnings = [] ): array
1014
{
1115
$wordpress_dir = ITEnv::getWordPressDir();

0 commit comments

Comments
 (0)