Commit f8a8c8a5 authored by Project Update Bot's avatar Project Update Bot Committed by Jay Friendly
Browse files

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

parent 4b37f205
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2,5 +2,4 @@ name: Duration Field
description: Creates a duration Field API field, that collects a period of time, whether that be hours, minutes, seconds, days, months, years, or any combination of those.
type: module
package: Field types
core: '8.x'
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ class DurationElementStatesTest extends WebDriverTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();

    $this->testUser = $this->createUser();
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class DurationFormElementTest extends KernelTestBase implements FormInterface {
  /**
   * Sets up the test.
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();
    $this->installSchema('system', ['sequences', 'key_value_expire']);
    $this->installEntitySchema('user');
@@ -170,7 +170,7 @@ class DurationFormElementTest extends KernelTestBase implements FormInterface {
    ];
    $this->assertCount(count($expected_errors), $errors);
    foreach ($expected_errors as $field => $name) {
      $this->assertEqual($errors[$field], t('%name is not a valid number.', ['%name' => $name]));
      $this->assertEquals($errors[$field], t('%name is not a valid number.', ['%name' => $name]));
    }
  }