From 8cf1fcacf548873dd2cd0b2956b2a25aaa1980ee Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 23 Sep 2020 11:26:56 +1200 Subject: [PATCH] Extend test debug Maybe this will help us understand why the test is intermittant --- tests/phpunit/E2E/Core/PrevNextTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/E2E/Core/PrevNextTest.php b/tests/phpunit/E2E/Core/PrevNextTest.php index 4889f36e07..db52c588ad 100644 --- a/tests/phpunit/E2E/Core/PrevNextTest.php +++ b/tests/phpunit/E2E/Core/PrevNextTest.php @@ -332,7 +332,12 @@ class PrevNextTest extends \CiviEndToEndTestCase { $cacheKey = $this->cacheKey; } $selected = $this->prevNext->getSelection($cacheKey, $action)[$cacheKey]; - $this->assertEquals($ids, array_keys($selected), 'selected cache not correct for ' . $cacheKey . 'defined keys are ' . $this->cacheKey . 'and ' . $this->cacheKeyB); + $this->assertEquals($ids, array_keys($selected), 'selected cache not correct for ' . $cacheKey + . ' defined keys are ' . $this->cacheKey . 'and ' . $this->cacheKeyB + . ' result from getall is ' . print_r($this->prevNext->getSelection($cacheKey, 'getall'), 1) + . ' and the prevNext cache is ' . print_r($this->prevNext, TRUE) + ); + $this->assertCount(count($ids), $selected); } -- 2.25.1