diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
index 2701dcb..d9df046 100644
--- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
+++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
@@ -98,7 +98,8 @@ public function testForm() {
 
     // Test drupalPostForm().
     $edit = ['bananas' => 'red'];
-    $this->drupalPostForm('form-test/object-builder', $edit, 'Save');
+    $result = $this->drupalPostForm('form-test/object-builder', $edit, 'Save');
+    $this->assertSame($this->getSession()->getPage()->getContent(), $result);
     $value = $config_factory->get('form_test.object')->get('bananas');
     $this->assertSame('red', $value);
 
