public function NodeRevisionDeleteTest::testGetRevisionDeletionBatch in Node Revision Delete 8
Tests the getRevisionDeletionBatch() method.
@covers ::getRevisionDeletionBatch @dataProvider providerGetRevisionDeletionBatch
Parameters
array $expected: The expected result from calling the function.
array $revisions: The revisions array.
bool $dry_run: The dry run option.
File
- tests/
src/ Unit/ NodeRevisionDeleteTest.php, line 304
Class
- NodeRevisionDeleteTest
- Tests the NodeRevisionDelete class methods.
Namespace
Drupal\Tests\node_revision_delete\UnitCode
public function testGetRevisionDeletionBatch(array $expected, array $revisions, $dry_run) {
// Testing the method.
$this
->assertEquals($expected, $this->nodeRevisionDelete
->getRevisionDeletionBatch($revisions, $dry_run));
}