Verified Commit ee32e930 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 42b28e48
Loading
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -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([