Skip to content
Snippets Groups Projects
Commit 1009dd9c authored by project update bot's avatar project update bot Committed by Jeroen Tubex
Browse files

Issue #3434400: Automated Drupal 11 compatibility fixes for search_api_sorts

parent 2f615312
No related branches found
No related tags found
1 merge request!9Automated Project Update Bot fixes
Pipeline #128520 passed with warnings
......@@ -61,7 +61,7 @@ class SearchApiSortsQueryPreExecute implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
$events[SearchApiEvents::QUERY_PRE_EXECUTE][] = ['onQueryPreExecute'];
return $events;
}
......
......@@ -119,9 +119,7 @@ class SearchApiSortsManagerTest extends UnitTestCase {
$sortsField = new SearchApiSortsField(['id' => $this->randomMachineName()], 'search_api_sorts_field');
$storage = $this->getMockBuilder(EntityStorageInterface::class)
->disableOriginalConstructor()
->getMock();
$storage = $this->createMock(EntityStorageInterface::class);
$storage->expects($this->once())
->method('loadByProperties')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment