Skip to content
Snippets Groups Projects
Commit 86ed03b5 authored by Joris Vercammen's avatar Joris Vercammen
Browse files

Issue #3430401: Automated Drupal 11 compatibility fixes for facets

parent 19059307
Branches
Tags
3 merge requests!258Issue #3264284 by BAHbKA, mkalkbrenner: Facets summary should be cacheable, in...,!234Issue #3264284 by BAHbKA, mkalkbrenner: Facets summary should be cacheable, in...,!200Issue #3264284 by BAHbKA, mkalkbrenner: Facets summary should be cacheable, in...
Pipeline #122010 failed
......@@ -58,7 +58,7 @@ class SearchApiSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
// Workaround to avoid a fatal error during site install from existing
// config.
// @see https://www.drupal.org/project/facets/issues/3199156
......
......@@ -45,7 +45,7 @@ class ConfigurationSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
$events[ConfigEvents::DELETE][] = ['onConfigDelete', 50];
return $events;
}
......
......@@ -55,7 +55,7 @@ class SearchApiSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
// Workaround to avoid a fatal error during site install from existing
// config.
// @see https://www.drupal.org/project/facets/issues/3199156
......
......@@ -14,7 +14,7 @@ class EventListener implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
return [
FacetsEvents::QUERY_STRING_CREATED => 'queryStringCreated',
];
......
......@@ -56,6 +56,7 @@ class FacetSourcePluginManagerTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->discovery = $this->createMock(DiscoveryInterface::class);
$this->factory = $this->createMock(DefaultFactory::class);
......
......@@ -33,6 +33,7 @@ class DependentFacetProcessorTest extends Drupal10CompatibilityUnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$facet = new Facet([], 'facets_facet');
$this->results = [
new Result($facet, 'snow_owl', 'Snow owl', 2),
......
......@@ -64,6 +64,7 @@ class ProcessorPluginManagerTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->discovery = $this->createMock(DiscoveryInterface::class);
$this->factory = $this->createMock(DefaultFactory::class);
......
......@@ -55,6 +55,7 @@ class QueryTypePluginManagerTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->discovery = $this->createMock(DiscoveryInterface::class);
$this->factory = $this->createMock(DefaultFactory::class);
......
......@@ -56,6 +56,7 @@ class UrlProcessorPluginManagerTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->discovery = $this->createMock(DiscoveryInterface::class);
$this->factory = $this->createMock(DefaultFactory::class);
......
......@@ -56,6 +56,7 @@ class WidgetPluginManagerTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->discovery = $this->createMock(DiscoveryInterface::class);
$this->factory = $this->createMock(DefaultFactory::class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment