public 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()
Implementation of the global t() function.
The global t() function is not available in scope of the data provider, so it is mocked here as a simple string replacement.
See also
t()
1 call to PermissionEventTest::t()
- PermissionEventTest::permissionEventDataProvider in tests/
src/ Kernel/ PermissionEventTest.php - Provides expected results for the testPermissionEventIntegration test.
File
- tests/
src/ Kernel/ PermissionEventTest.php, line 214
Class
- PermissionEventTest
- Tests the implementations of the PermissionEvent in 'og' and 'og_ui'.
Namespace
Drupal\Tests\og\KernelCode
public function t($string, array $args = [], array $options = []) {
return new FormattableMarkup($string, $args);
}