public function OgDeleteOrphansTest::ogDeleteOrphansPluginProvider in Organic groups 8
Provides OgDeleteOrphans plugins for the tests.
Return value
array An array of test properties. Each property is an indexed array with the following items:
- A string containing the plugin name being tested.
- A boolean indicating whether or not cron jobs should be run.
- A boolean indicating whether or not shutdown functions should be run.
- A boolean indicating whether the deletion happens in an asynchronous process.
- A string defining the queue that is used by the plugin.
File
- tests/
src/ Kernel/ OgDeleteOrphansTest.php, line 221
Class
- OgDeleteOrphansTest
- Tests deletion of orphaned group content and memberships.
Namespace
Drupal\Tests\og\KernelCode
public function ogDeleteOrphansPluginProvider() {
return [
[
'batch',
FALSE,
FALSE,
TRUE,
'og_orphaned_group_content',
],
[
'cron',
TRUE,
FALSE,
FALSE,
'og_orphaned_group_content_cron',
],
[
'simple',
FALSE,
TRUE,
FALSE,
'og_orphaned_group_content',
],
];
}