public function FormCacheTest::testDeleteCache in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Form/FormCacheTest.php \Drupal\Tests\Core\Form\FormCacheTest::testDeleteCache()
@covers ::deleteCache
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormCacheTest.php, line 419 - Contains \Drupal\Tests\Core\Form\FormCacheTest.
Class
- FormCacheTest
- @coversDefaultClass \Drupal\Core\Form\FormCache @group Form @runTestsInSeparateProcesses @preserveGlobalState disabled
Namespace
Drupal\Tests\Core\FormCode
public function testDeleteCache() {
$form_build_id = 'the_form_build_id';
$this->formCacheStore
->expects($this
->once())
->method('delete')
->with($form_build_id);
$this->formStateCacheStore
->expects($this
->once())
->method('delete')
->with($form_build_id);
$this->formCache
->deleteCache($form_build_id);
}