Loading duration_field.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -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 tests/src/FunctionalJavascript/DurationElementStatesTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ class DurationElementStatesTest extends WebDriverTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->testUser = $this->createUser(); Loading tests/src/Kernel/DurationFormElementTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -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'); Loading Loading @@ -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])); } } Loading Loading
duration_field.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -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
tests/src/FunctionalJavascript/DurationElementStatesTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ class DurationElementStatesTest extends WebDriverTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->testUser = $this->createUser(); Loading
tests/src/Kernel/DurationFormElementTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -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'); Loading Loading @@ -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])); } } Loading