Skip to content

Commit b6286a7

Browse files
b1ink0felixarntz
andauthored
Add comment explaining PERFLAB_PLACE_OBJECT_CACHE_DROPIN usage in test setup.
Co-authored-by: Felix Arntz <[email protected]>
1 parent d228f28 commit b6286a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class Test_Load extends WP_UnitTestCase {
1313
public function set_up(): void {
1414
parent::set_up();
1515

16+
/*
17+
* This constant is not set by default in production.
18+
* However, it is needed for all tests that cover placement of the object cache drop-in.
19+
*/
1620
if ( ! defined( 'PERFLAB_PLACE_OBJECT_CACHE_DROPIN' ) ) {
1721
define( 'PERFLAB_PLACE_OBJECT_CACHE_DROPIN', true );
1822
}

0 commit comments

Comments
 (0)