public function NodeRevisionGenerateTest::providerExistsNodesContentType in Node Revision Delete 8
Data provider for testExistsNodesContentType().
Return value
array An array of arrays, each containing:
- 'expected' - Expected return from ::getAvailableNodesForRevisions().
- 'content_type' - The content types to generate node revisions.
See also
testExistsNodesContentType()
File
- modules/
node_revision_generate/ tests/ src/ Unit/ NodeRevisionGenerateTest.php, line 376
Class
- NodeRevisionGenerateTest
- Tests the NodeRevisionGenerate class methods.
Namespace
Drupal\Tests\node_revision_generate\UnitCode
public function providerExistsNodesContentType() {
$tests = [];
$tests['t1'] = [
TRUE,
'article',
];
$tests['t2'] = [
FALSE,
'page',
];
$tests['t3'] = [
FALSE,
'book',
];
$tests['t4'] = [
TRUE,
'house',
];
$tests['t5'] = [
FALSE,
'animal',
];
return $tests;
}