Skip to content
Snippets Groups Projects
Commit 752319c1 authored by Damian Lee's avatar Damian Lee Committed by Tim Plunkett
Browse files

Added delete test

parent 1c68d776
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -152,6 +152,12 @@ function testConfigurableCRUD() { ...@@ -152,6 +152,12 @@ function testConfigurableCRUD() {
// Check value have been written to config. // Check value have been written to config.
$config = config('views.view.archive')->get(); $config = config('views.view.archive')->get();
$this->assertEqual($view->tag, $config['tag'], 'View property saved to config.'); $this->assertEqual($view->tag, $config['tag'], 'View property saved to config.');
// Delete the config.
$created->delete();
$config = config('views.view.archive_copy');
$this->assertTrue($config->isNew(), 'Deleted config is now new.');
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment