diff --git a/core/modules/system/lib/Drupal/system/Tests/Form/CacheTest.php b/core/modules/system/lib/Drupal/system/Tests/Form/CacheTest.php index 9ec11ed..0c57fc8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Form/CacheTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Form/CacheTest.php @@ -70,7 +70,7 @@ function testCacheToken() { // Test that loading the cache with a different form_id fails. $wrong_form_build_id = $this->randomName(9); $cached_form_state = form_state_defaults(); - $this->assertFalse(form_get_cache($wrong_form_build_id, $cached_form)); + $this->assertFalse(form_get_cache($wrong_form_build_id, $cached_form_state), 'No form returned from cache'); $this->assertTrue(empty($cached_form_state['example']), 'Cached form state was not loaded'); }