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

Issue #3455186 by cmlara, joseph.olstad - Replace withConsecutive and...

Issue #3455186 by cmlara, joseph.olstad - Replace withConsecutive and willReturnOnConsecutiveCalls - adjustments again again.
parent 375f608c
No related branches found
No related tags found
No related merge requests found
Pipeline #322610 failed
......@@ -46,12 +46,15 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
])
->getMock();
foreach (\array_keys($settings) as $i => $key) {
$mock->expects(static::any())
->method('getSetting')
->with($key)
->willReturn($settings[$key]);
}
$mock
->expects(static::exactly(\count($settings)))
->method('getSetting')
->with(static::callback(function ($key) use ($settings) {
return isset($settings[$key]);
}))
->willReturnCallback(function ($key) use ($settings) {
return $settings[$key];
});
$terms = \array_map(function (array $lineage): array {
static $created = [];
......
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