Skip to content
Snippets Groups Projects
Verified Commit d46c0db8 authored by Youri van Koppen's avatar Youri van Koppen Committed by Alex Pott
Browse files

Issue #3287625 by Project Update Bot, MegaChriz: Automated Drupal 10 compatibility fixes

parent 3dba4717
No related branches found
No related tags found
No related merge requests found
name: Floating Block
type: module
description: Allows regions of the site to float.
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
dependencies:
- drupal:block
configure: admin/config/user-interface/floating-block
......@@ -60,7 +60,7 @@ function floating_block_library_info() {
'title' => 'Floating Block',
'version' => 0.1,
'js' => [
drupal_get_path('module', 'floating_block') . '/floating_block.js' => [],
\Drupal::service('extension.list.module')->getPath('floating_block') . '/floating_block.js' => [],
],
'dependencies' => [
['system', 'jquery'],
......
......@@ -16,7 +16,7 @@ class Helper implements HelperInterface {
return [];
}
$floating_blocks = preg_split("/(\r\n|\n)/", $floating_block_data, NULL, PREG_SPLIT_NO_EMPTY);
$floating_blocks = preg_split("/(\r\n|\n)/", $floating_block_data, -1, PREG_SPLIT_NO_EMPTY);
$output = [];
foreach ($floating_blocks as $floating_block) {
......
......@@ -30,7 +30,7 @@ class SettingsFormTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
// Create an user with admin privileges.
......
......@@ -38,7 +38,7 @@ class InstallTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->moduleInstaller = $this->container->get('module_installer');
$this->moduleHandler = $this->container->get('module_handler');
......@@ -60,7 +60,7 @@ class InstallTest extends BrowserTestBase {
// Make sure that by default the config page is not accessible.
$this->drupalGet('admin/config/user-interface/floating-block');
$this->assertResponse(403, 'No access to the Floating Block settings form.');
$this->assertSession()->statusCodeEquals(403, 'No access to the Floating Block settings form.');
}
}
......@@ -21,7 +21,7 @@ class HelperTest extends UnitTestCase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->helper = new Helper();
......
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