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
1bd769e8
Commit
1bd769e8
authored
3 months ago
by
Joseph Olstad
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3455186
by cmlara, joseph.olstad - Update change made by project update bot.
parent
057ab203
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#322407
failed
3 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Unit/CshsGroupByRootFormatterUnitTest.php
+10
-14
10 additions, 14 deletions
tests/src/Unit/CshsGroupByRootFormatterUnitTest.php
with
10 additions
and
14 deletions
tests/src/Unit/CshsGroupByRootFormatterUnitTest.php
+
10
−
14
View file @
1bd769e8
...
...
@@ -50,14 +50,12 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
$mock
->
expects
(
$matcher
)
->
method
(
'getSetting'
)
->
willReturnCallback
(
function
(...
$parameters
)
use
(
$matcher
,
$settings
)
{
$this
->
assertSame
(
\array_map
(
static
fn
(
string
$name
):
array
=>
[
$name
],
\array_keys
(
$settings
),
)[
$matcher
->
getInvocationCount
()
-
1
],
$parameters
);
->
willReturnCallback
(
function
(
string
$param
)
use
(
$response
)
{
if
(
is_a
(
$response
,
\Exception
::
class
))
{
throw
$response
;
}
);
return
$response
;
});
$terms
=
\array_map
(
function
(
array
$lineage
):
array
{
static
$created
=
[];
...
...
@@ -111,14 +109,12 @@ class CshsGroupByRootFormatterUnitTest extends UnitTestCase {
$term_storage
->
expects
(
$matcher
)
->
method
(
'loadAllParents'
)
->
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
);
->
willReturnCallback
(
function
(
string
$param
)
use
(
$response
)
{
if
(
is_a
(
$response
,
\Exception
::
class
))
{
throw
$response
;
}
);
return
$response
;
});
$mock
->
expects
(
static
::
exactly
(
\count
(
$terms_to_view
)))
...
...
This diff is collapsed.
Click to expand it.
Joseph Olstad
@joseph.olstad
mentioned in commit
86533223
·
3 months ago
mentioned in commit
86533223
mentioned in commit 86533223f4456e7ec4a868925365c7e5b875ff09
Toggle commit list
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