function entity_test_permission

Implements hook_permission().

1 string reference to 'entity_test_permission'
DrupalUnitTestBaseTest::testSetUp in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php
Tests expected behavior of setUp().

File

drupal/core/modules/system/tests/modules/entity_test/entity_test.module, line 186
Test module for the entity API providing several entity types for testing.

Code

function entity_test_permission() {
  $permissions = array(
    'administer entity_test content' => array(
      'title' => t('Administer entity_test content'),
      'description' => t('Manage entity_test content'),
    ),
    'view test entity' => array(
      'title' => t('View test entities'),
    ),
    'view test entity translations' => array(
      'title' => t('View translations of test entities'),
    ),
  );
  return $permissions;
}