Skip to content
Snippets Groups Projects
Commit b191d52d authored by Paulo Henrique Cota Starling's avatar Paulo Henrique Cota Starling Committed by Neslee Canil Pinto
Browse files

Issue #3174592 by paulocs: drupalPostForm in functional tests is deprecated

parent e41ace9c
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class BlockClassTest extends BrowserTestBase {
'region' => 'content',
'third_party_settings[block_class][classes]' => 'TestClass_content',
];
$this->drupalPostForm(NULL, $edit, $this->t('Save block'));
$this->submitForm($edit, 'Save block');
// Add a user account menu with a custom CSS class.
$this->drupalGet('admin/structure/block/add/system_menu_block:account/classy', ['query' => ['region' => 'content']]);
......@@ -50,7 +50,7 @@ class BlockClassTest extends BrowserTestBase {
'region' => 'secondary_menu',
'third_party_settings[block_class][classes]' => 'TestClass_menu',
];
$this->drupalPostForm(NULL, $edit, $this->t('Save block'));
$this->submitForm($edit, 'Save block');
// Go to the front page of the user.
$this->drupalGet('<front>');
......
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