You are here

public function PermissionsGeneratorTest::generatesNoPermissionsIfNoEntityTypesAreDefined in Entity Construction Kit (ECK) 8

Tests that no permissions are created if no entity types are defined.

@test

File

tests/src/Unit/PermissionsGeneratorTest.php, line 48

Class

PermissionsGeneratorTest
Tests the form element implementation.

Namespace

Drupal\Tests\eck\Unit

Code

public function generatesNoPermissionsIfNoEntityTypesAreDefined() {
  $this
    ->assertSame([], $this->sut
    ->entityPermissions());
}