Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cshs
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
cshs
Commits
86533223
Commit
86533223
authored
3 months ago
by
Joseph Olstad
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Issue
#3455186
by cmlara, joseph.olstad - Update change made by project update bot."
This reverts commit
1bd769e8
.
parent
1bd769e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Unit/CshsGroupByRootFormatterUnitTest.php
+14
-10
14 additions, 10 deletions
tests/src/Unit/CshsGroupByRootFormatterUnitTest.php
with
14 additions
and
10 deletions
tests/src/Unit/CshsGroupByRootFormatterUnitTest.php
+
14
−
10
View file @
86533223
...
...
@@ -50,12 +50,14 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
$mock
->
expects
(
$matcher
)
->
method
(
'getSetting'
)
->
willReturnCallback
(
function
(
string
$param
)
use
(
$response
)
{
if
(
is_a
(
$response
,
\Exception
::
class
))
{
throw
$response
;
->
willReturnCallback
(
function
(...
$parameters
)
use
(
$matcher
,
$settings
)
{
$this
->
assertSame
(
\array_map
(
static
fn
(
string
$name
):
array
=>
[
$name
],
\array_keys
(
$settings
),
)[
$matcher
->
getInvocationCount
()
-
1
],
$parameters
);
}
return
$response
;
});
);
$terms
=
\array_map
(
function
(
array
$lineage
):
array
{
static
$created
=
[];
...
...
@@ -109,12 +111,14 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
$term_storage
->
expects
(
$matcher
)
->
method
(
'loadAllParents'
)
->
willReturnCallback
(
function
(
string
$param
)
use
(
$response
)
{
if
(
is_a
(
$response
,
\Exception
::
class
))
{
throw
$response
;
->
willReturnCallback
(
function
(...
$parameters
)
use
(
$matcher
,
$terms_to_view
)
{
$this
->
assertSame
(
\array_map
(
static
fn
(
TermInterface
$term
):
array
=>
[
$term
->
id
()],
$terms_to_view
,
)[
$matcher
->
getInvocationCount
()
-
1
],
$parameters
);
}
return
$response
;
});
);
$mock
->
expects
(
static
::
exactly
(
\count
(
$terms_to_view
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment