diff -u b/core/modules/field/tests/src/FunctionalJavascript/FormJSAddMoreTest.php b/core/modules/field/tests/src/FunctionalJavascript/FormJSAddMoreTest.php --- b/core/modules/field/tests/src/FunctionalJavascript/FormJSAddMoreTest.php +++ b/core/modules/field/tests/src/FunctionalJavascript/FormJSAddMoreTest.php @@ -14,6 +14,7 @@ * @group field */ class FormJSAddMoreTest extends JavascriptTestBase { + /** * {@inheritdoc} */ @@ -75,7 +76,7 @@ $this->assertNotEmpty($field_1, 'Successfully added another item.'); // Validate the value of the first field has not changed. - $this->assertEquals($field_0->getValue(), '1', 'Value for the first item has not changed.'); + $this->assertEquals('1', $field_0->getValue(), 'Value for the first item has not changed.'); // Validate the value of the second item is empty. $this->assertEmpty($field_1->getValue(), 'Value for the second item is currently empty.');