You are here

public function ShortcutSetsTest::testShortcutSetDeleteDefault in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php \Drupal\Tests\shortcut\Functional\ShortcutSetsTest::testShortcutSetDeleteDefault()
  2. 10 core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php \Drupal\Tests\shortcut\Functional\ShortcutSetsTest::testShortcutSetDeleteDefault()

Tests deleting the default shortcut set.

File

core/modules/shortcut/tests/src/Functional/ShortcutSetsTest.php, line 199

Class

ShortcutSetsTest
Create, view, edit, delete, and change shortcut sets.

Namespace

Drupal\Tests\shortcut\Functional

Code

public function testShortcutSetDeleteDefault() {
  $this
    ->drupalGet('admin/config/user-interface/shortcut/manage/default/delete');
  $this
    ->assertSession()
    ->statusCodeEquals(403);
}