From 63bc78c2d4052312df8ed486cc1689a8c3311d33 Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Fri, 19 Jul 2024 20:48:04 +0100 Subject: [PATCH] Issue #3462556 by catch: Consolidate two test methods in NumberFieldTest --- .../tests/src/Functional/Number/NumberFieldTest.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php b/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php index 8ddf0b9e18d7..24a7adab62fd 100644 --- a/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php +++ b/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php @@ -13,7 +13,6 @@ * Tests the creation of numeric fields. * * @group field - * @group #slow */ class NumberFieldTest extends BrowserTestBase { @@ -393,9 +392,9 @@ public function testNumberFloatField(): void { } /** - * Tests setting the minimum value of a float field through the interface. + * Tests setting minimum values through the interface. */ - public function testCreateNumberFloatField(): void { + public function testMinimumValues(): void { // Create a float field. $field_name = $this->randomMachineName(); FieldStorageConfig::create([ @@ -415,12 +414,7 @@ public function testCreateNumberFloatField(): void { $this->assertSetMinimumValue($field, 0.0001); // Set the minimum value to an integer value. $this->assertSetMinimumValue($field, 1); - } - /** - * Tests setting the minimum value of a decimal field through the interface. - */ - public function testCreateNumberDecimalField(): void { // Create a decimal field. $field_name = $this->randomMachineName(); FieldStorageConfig::create([ -- GitLab