protected function PermissionEventTest::t in Organic groups 8
Same name in this branch
- 8 tests/src/Unit/PermissionEventTest.php \Drupal\Tests\og\Unit\PermissionEventTest::t()
- 8 tests/src/Kernel/PermissionEventTest.php \Drupal\Tests\og\Kernel\PermissionEventTest::t()
Mock translation method.
Parameters
string $string: The string to translate.
Return value
string The translated string.
6 calls to PermissionEventTest::t()
- PermissionEventTest::groupContentOperationPermissionsProvider in tests/
src/ Unit/ PermissionEventTest.php - Data provider to test group content operation permissions.
- PermissionEventTest::invalidPermissionsProvider in tests/
src/ Unit/ PermissionEventTest.php - Data provider to test handling of invalid permissions.
- PermissionEventTest::offsetSetInvalidPermissionProvider in tests/
src/ Unit/ PermissionEventTest.php - Data provider for testOffsetSetInvalidPermission().
- PermissionEventTest::permissionsProvider in tests/
src/ Unit/ PermissionEventTest.php - Data provider to test permissions.
- PermissionEventTest::testInvalidGroupContentOperationPermissionCreation in tests/
src/ Unit/ PermissionEventTest.php - Tests creation of an invalid operation permission.
File
- tests/
src/ Unit/ PermissionEventTest.php, line 983
Class
- PermissionEventTest
- Tests permission events.
Namespace
Drupal\Tests\og\UnitCode
protected function t($string) {
// Actually translating the strings is not important for this test.
return $string;
}