You are here

private function PermissionsGeneratorTest::createNewSubjectUnderTest in Entity Construction Kit (ECK) 8

Creates a PermissionsGenerator to be used in the tests.

Return value

\Drupal\eck\PermissionsGenerator The created PermissionsGenerator instance.

1 call to PermissionsGeneratorTest::createNewSubjectUnderTest()
PermissionsGeneratorTest::setUp in tests/src/Unit/PermissionsGeneratorTest.php

File

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

Class

PermissionsGeneratorTest
Tests the form element implementation.

Namespace

Drupal\Tests\eck\Unit

Code

private function createNewSubjectUnderTest() {
  $permissionsGenerator = new PermissionsGenerator();
  $permissionsGenerator
    ->setStringTranslation($this
    ->getStringTranslationStub());
  return $permissionsGenerator;
}