Skip to content

Commit

Permalink
Merge pull request #18565 from eileenmcnaughton/cachekey
Browse files Browse the repository at this point in the history
dev/core#2029 Extend test debug
  • Loading branch information
seamuslee001 authored Sep 23, 2020
2 parents 713085d + 8cf1fca commit be21932
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/phpunit/E2E/Core/PrevNextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,12 @@ protected function assertSelections($ids, $action = 'get', $cacheKey = NULL) {
$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);
}

Expand Down

0 comments on commit be21932

Please sign in to comment.