Commit 562399cc authored by git's avatar git Committed by Dmitry Kiselev
Browse files

Issue #3286211 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent 52db12cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
const BE_SURE_STATUS_OK = 'messages--status';
const BE_SURE_STATUS_NOK = 'messages--warning';

define('BE_SURE_MODULE_PATH', drupal_get_path('module', 'be_sure'));
define('BE_SURE_MODULE_PATH', \Drupal::service('extension.list.module')->getPath('be_sure'));

use Drupal\Core\Url;
use Drupal\Core\Link;
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class BeSurePerformanceCacheTest extends KernelTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();

    $this->installConfig(['system']);
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class BeSurePerformanceOtherTest extends KernelTestBase {
  /**
   * {@inheritdoc}
   */
  public function setUp() {
  public function setUp(): void {
    parent::setUp();

    $this->installConfig(['system']);
+3 −3
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class BsSecurityTest extends KernelTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();

    $this->installConfig(['system']);
@@ -39,7 +39,7 @@ class BsSecurityTest extends KernelTestBase {
    if ($moduleHandler->moduleExists($module)) {
      $this->disableModules([$module]);
    }
    $this->assertEqual(call_user_func($callback), !$expected);
    $this->assertEquals(call_user_func($callback), !$expected);
  }

  /**
@@ -49,7 +49,7 @@ class BsSecurityTest extends KernelTestBase {
   */
  public function testEnabledModules($module, $callback, $expected) {
    $this->enableModules([$module]);
    $this->assertEqual(call_user_func($callback), $expected);
    $this->assertEquals(call_user_func($callback), $expected);
  }

  /**
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ class BeSureSeoBestPractices extends KernelTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();
  }

Loading