You are here

class TestPermissionHandler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestPermissionHandler

Hierarchy

Expanded class hierarchy of TestPermissionHandler

File

core/modules/user/tests/src/Unit/PermissionHandlerTest.php, line 366
Contains \Drupal\Tests\user\Unit\PermissionHandlerTest.

Namespace

Drupal\Tests\user\Unit
View source
class TestPermissionHandler extends PermissionHandler {

  /**
   * Test module data.
   *
   * @var array
   */
  protected $systemModuleData;
  protected function systemRebuildModuleData() {
    return $this->systemModuleData;
  }
  public function setSystemRebuildModuleData(array $extensions) {
    $this->systemModuleData = $extensions;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PermissionHandler::$controllerResolver protected property The controller resolver.
PermissionHandler::$moduleHandler protected property The module handler.
PermissionHandler::$yamlDiscovery protected property The YAML discovery class to find all .permissions.yml files.
PermissionHandler::buildPermissionsYaml protected function Builds all permissions provided by .permissions.yml files.
PermissionHandler::getModuleNames protected function Returns all module names.
PermissionHandler::getPermissions public function Gets all available permissions. Overrides PermissionHandlerInterface::getPermissions
PermissionHandler::getYamlDiscovery protected function Gets the YAML discovery.
PermissionHandler::moduleProvidesPermissions public function Determines whether a module provides some permissions. Overrides PermissionHandlerInterface::moduleProvidesPermissions
PermissionHandler::sortPermissions protected function Sorts the given permissions by provider name and title.
PermissionHandler::__construct public function Constructs a new PermissionHandler.
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
TestPermissionHandler::$systemModuleData protected property Test module data.
TestPermissionHandler::setSystemRebuildModuleData public function
TestPermissionHandler::systemRebuildModuleData protected function Wraps system_rebuild_module_data() Overrides PermissionHandler::systemRebuildModuleData