Commit 97a0dec2 authored by catch's avatar catch
Browse files

Issue #3240185 by alexpott:...

Issue #3240185 by alexpott: \Drupal\Tests\field\Functional\FieldDefaultValueCallbackTest causes deprecations on PHP 8.1
parent ebcea4ec
Loading
Loading
Loading
Loading
+1 −1
Changes for core/modules/field/tests/src/Functional/FieldDefaultValueCallbackTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public function testDefaultValueCallbackForm() {

    // Check that the default field form is visible when no callback is set.
    $this->drupalGet('/admin/structure/types/manage/article/fields/node.article.field_test');
    $this->assertSession()->fieldValueEquals('default_value_input[field_test][0][value]', NULL);
    $this->assertSession()->fieldValueEquals('default_value_input[field_test][0][value]', '');

    // Set a different field value, it should be on the field.
    $default_value = $this->randomString();