You are here

public function AutoEntityLabelPermissionControllerTest::testAutoEntityLabelPermissions in Automatic Entity Label 8.3

Tests autoEntityLabelPermissions() method.

File

tests/src/Kernel/AutoEntityLabelPermissionControllerTest.php, line 66

Class

AutoEntityLabelPermissionControllerTest
Tests AutoEntityLabelPermissionController methods.

Namespace

Drupal\Tests\auto_entitylabel\Kernel

Code

public function testAutoEntityLabelPermissions() {
  $this
    ->assertNotEmpty($this->autoEntityLabelPermissionController
    ->autoEntityLabelPermissions());
  $this
    ->assertEquals([
    'administer node_type labels' => [
      'title' => '<em class="placeholder">Content type</em>: Administer automatic entity labels',
      'restrict access' => TRUE,
    ],
  ], $this->autoEntityLabelPermissionController
    ->autoEntityLabelPermissions());
}