Skip to content
Snippets Groups Projects
Verified Commit a8bb272f authored by Dave Long's avatar Dave Long
Browse files

Issue #3462556 by catch: Consolidate two test methods in NumberFieldTest

(cherry picked from commit 63bc78c2)
parent b74f2b15
No related branches found
No related tags found
2 merge requests!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...
Pipeline #229239 passed with warnings
Pipeline: drupal

#229271

    Pipeline: drupal

    #229262

      Pipeline: drupal

      #229253

        +1
        ......@@ -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([
        ......
        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