protected function DefaultRoleEventTest::t in Organic groups 8
Mock translation method.
Parameters
string $string: The string to translate.
Return value
string The translated string.
2 calls to DefaultRoleEventTest::t()
- DefaultRoleEventTest::defaultRoleProvider in tests/
src/ Unit/ DefaultRoleEventTest.php - Provides test data to test default roles.
- DefaultRoleEventTest::invalidDefaultRoleProvider in tests/
src/ Unit/ DefaultRoleEventTest.php - Provides invalid test data to test default roles.
File
- tests/
src/ Unit/ DefaultRoleEventTest.php, line 512
Class
- DefaultRoleEventTest
- Tests default role events.
Namespace
Drupal\Tests\og\UnitCode
protected function t($string) {
// Actually translating the strings is not important for this test.
return $string;
}