function ActionListTest::testNonConfigurableActionsCanBeCreated

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

File

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

Class

ActionListTest
Test behaviors when visiting the action listing page.

Namespace

Drupal\Tests\action\Functional

Code

public function testNonConfigurableActionsCanBeCreated() : void {
  $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.