Commit f3ae4113 authored by borisson_'s avatar borisson_ Committed by borisson_

Issue #2973743 by borisson_, anisha.challa: Fix rest tests + cs

parent 345525d1
......@@ -177,31 +177,31 @@ class RestIntegrationTest extends FacetsTestBase {
$results = [
'article' => [
'url' => $base_url . '/facets-rest?f%5B0%5D=type%3Aitem&f%5B1%5D=type%3Aarticle&_format=json',
'url' => $base_url . '/facets-rest?_format=json&f%5B0%5D=type%3Aitem&f%5B1%5D=type%3Aarticle',
'count' => 2,
],
'item' => [
'url' => $base_url . '/facets-rest?&_format=json',
'url' => $base_url . '/facets-rest?_format=json&',
'count' => 3,
],
'banana' => [
'url' => $base_url . '/facets-rest?f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Abanana&_format=json',
'url' => $base_url . '/facets-rest?_format=json&f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Abanana',
'count' => 0,
],
'strawberry' => [
'url' => $base_url . '/facets-rest?f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Astrawberry&_format=json',
'url' => $base_url . '/facets-rest?_format=json&f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Astrawberry',
'count' => 0,
],
'apple' => [
'url' => $base_url . '/facets-rest?f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Aapple&_format=json',
'url' => $base_url . '/facets-rest?_format=json&f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Aapple',
'count' => 1,
],
'orange' => [
'url' => $base_url . '/facets-rest?f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Aorange&_format=json',
'url' => $base_url . '/facets-rest?_format=json&f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Aorange',
'count' => 2,
],
'grape' => [
'url' => $base_url . '/facets-rest?f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Agrape&_format=json',
'url' => $base_url . '/facets-rest?_format=json&f%5B0%5D=type%3Aitem&f%5B1%5D=keywords%3Agrape',
'count' => 1,
],
];
......
......@@ -30,13 +30,9 @@ abstract class WidgetPluginBase extends PluginBase implements WidgetPluginInterf
protected $facet;
/**
* Constructs a plugin object.
*
* @param array $configuration
* (optional) An optional configuration to be passed to the plugin. If
* empty, the plugin is initialized with its default plugin configuration.
* {@inheritdoc}
*/
public function __construct(array $configuration = [], $plugin_id, $plugin_definition) {
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->setConfiguration($configuration);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment