Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
facets
Commits
4face3a7
Commit
4face3a7
authored
Sep 09, 2017
by
borisson_
Browse files
Issue
#2906665
: Follow-up: Fix test
parent
c697fe27
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/facets_summary/tests/src/Unit/Plugin/Processor/ResetFacetsProcessorTest.php
View file @
4face3a7
...
@@ -63,6 +63,12 @@ class ResetFacetsProcessorTest extends UnitTestCase {
...
@@ -63,6 +63,12 @@ class ResetFacetsProcessorTest extends UnitTestCase {
public
function
testBuildWithEmptyItems
()
{
public
function
testBuildWithEmptyItems
()
{
$summary
=
new
FacetsSummary
([],
'facets_summary'
);
$summary
=
new
FacetsSummary
([],
'facets_summary'
);
$summary
->
setFacetSourceId
(
'foo'
);
$summary
->
setFacetSourceId
(
'foo'
);
$config
=
[
'processor_id'
=>
'reset_facets'
,
'weights'
=>
[],
'settings'
=>
[
'link_text'
=>
'Text'
],
];
$summary
->
addProcessor
(
$config
);
$result
=
$this
->
processor
->
build
(
$summary
,
[
'foo'
],
[]);
$result
=
$this
->
processor
->
build
(
$summary
,
[
'foo'
],
[]);
$this
->
assertInternalType
(
'array'
,
$result
);
$this
->
assertInternalType
(
'array'
,
$result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment