Skip to content
Snippets Groups Projects
Commit 5a44d33b authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Fix form submission test and one more missing theme in tests

parent 01138520
Branches
Tags
No related merge requests found
Pipeline #136751 failed
......@@ -35,7 +35,7 @@ class PhpFilterTest extends PhpTestBase {
$edit = [];
$edit['body[0][format]'] = $this->phpCodeFormat->id();
$this->drupalGet('node/' . $node->id() . '/edit');
$this->submitForm($edit, t('Save'));
$this->submitForm($edit, 'Save');
$this->assertSession()->responseContains(t('@type %title has been updated.', ['@type' => 'Basic page', '%title' => $node->toLink($node->getTitle())->toString()]));
// Make sure that the PHP code shows up as text.
......
......@@ -11,6 +11,8 @@ use Drupal\Tests\BrowserTestBase;
*/
class PhpUninstallTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
/**
* Modules to enable.
*
......@@ -47,9 +49,9 @@ class PhpUninstallTest extends BrowserTestBase {
$edit = [];
$edit['uninstall[php]'] = TRUE;
$this->drupalGet('admin/modules/uninstall');
$this->submitForm($edit, t('Uninstall'));
$this->submitForm($edit, 'Uninstall');
$this->assertSession()->pageTextContains(t('Would you like to continue with uninstalling the above?'));
$this->submitForm([], t('Uninstall'));
$this->submitForm([], 'Uninstall');
$this->assertSession()->pageTextContains(t('The selected modules have been uninstalled.'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment