function ThemeUninstallConfirmTest::testMissingThemeParameter

Same name and namespace in other branches
  1. main core/modules/system/tests/src/Functional/Theme/ThemeUninstallConfirmTest.php \Drupal\Tests\system\Functional\Theme\ThemeUninstallConfirmTest::testMissingThemeParameter()

Tests handling of missing theme parameter.

File

core/modules/system/tests/src/Functional/Theme/ThemeUninstallConfirmTest.php, line 152

Class

ThemeUninstallConfirmTest
Tests the theme uninstall confirmation form.

Namespace

Drupal\Tests\system\Functional\Theme

Code

public function testMissingThemeParameter() : void {
  $this->drupalGet('admin/appearance/uninstall');
  $this->assertSession()
    ->statusCodeEquals(403);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.