Skip to content
Snippets Groups Projects
Commit 4c16f73b authored by Joseph Olstad's avatar Joseph Olstad
Browse files

Issue #3455186 by cmlara, joseph.olstad - Refactor tests for D11 phpunit 10+...

Issue #3455186 by cmlara, joseph.olstad - Refactor tests for D11 phpunit 10+ compatibility refactoring test.
parent 5a33aa88
No related branches found
No related tags found
No related merge requests found
Pipeline #332427 failed
......@@ -48,12 +48,12 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
$mock->expects($this->once())->method('getEntitiesToView')->willReturn($terms_to_view);
$term_storage = $this->createMock(TermStorageInterface::class);
foreach ($terms_to_view as $index => $term) {
$expected_parents = array_reverse($terms[$index]);
$term_storage->expects($this->at($index))
$term_storage->expects($this->exactly(count($terms_to_view)))
->method('loadAllParents')
->with($term->id())
->willReturn($expected_parents);
->willReturn(array_reverse($terms[$index]));
}
$mock->expects($this->exactly(count($terms_to_view)))->method('getTermStorage')->willReturn($term_storage);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment