function ActionListTest::testNonConfigurableActionsCanBeCreated

Same name in other branches
  1. 10 core/modules/action/tests/src/Functional/ActionListTest.php \Drupal\Tests\action\Functional\ActionListTest::testNonConfigurableActionsCanBeCreated()

Tests that non-configurable actions can be created by the UI.

File

core/modules/action/tests/src/Functional/ActionListTest.php, line 47

Class

ActionListTest
Test behaviors when visiting the action listing page.

Namespace

Drupal\Tests\action\Functional

Code

public function testNonConfigurableActionsCanBeCreated() {
    $this->drupalLogin($this->drupalCreateUser([
        'administer actions',
    ]));
    $this->drupalGet('/admin/config/system/actions');
    $this->assertSession()
        ->elementExists('css', 'select > option[value="user_block_user_action"]');
}

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