Skip to content

Commit d228f28

Browse files
committed
Fix failing tests due to introduction of new constant PERFLAB_PLACE_OBJECT_CACHE_DROPIN
1 parent d371a8d commit d228f28

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

plugins/performance-lab/tests/test-load.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77

88
class Test_Load extends WP_UnitTestCase {
99

10+
/**
11+
* Runs the routine before each test is executed.
12+
*/
13+
public function set_up(): void {
14+
parent::set_up();
15+
16+
if ( ! defined( 'PERFLAB_PLACE_OBJECT_CACHE_DROPIN' ) ) {
17+
define( 'PERFLAB_PLACE_OBJECT_CACHE_DROPIN', true );
18+
}
19+
}
20+
1021
public function test_perflab_get_generator_content(): void {
1122
$expected = 'performance-lab ' . PERFLAB_VERSION . '; plugins: ';
1223
$content = perflab_get_generator_content();

0 commit comments

Comments
 (0)