diff --git a/core/modules/system/lib/Drupal/system/Tests/Form/CallbackBuilderTest.php b/core/modules/system/lib/Drupal/system/Tests/Form/CallbackBuilderTest.php index d4aa96a..f1a146d 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Form/CallbackBuilderTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Form/CallbackBuilderTest.php @@ -35,7 +35,7 @@ public static function getInfo() { function testStaticMethodCallback() { $this->drupalGet('form-test/callback-builder'); $this->assertText('The Callbacks::buildForm() method was used for this form.'); - $elements = $this->xpath('//div[@id="form-test-callback-builder-form"]'); + $elements = $this->xpath('//form[@id="form-test-callback-builder-form"]'); $this->assertTrue(!empty($elements), 'The correct form ID was used even when it is not the callback function name.'); }