public function NodeRevisionDeleteTest::testGetTimeValues in Node Revision Delete 8
Tests the getTimeValues() method.
@covers ::getTimeValues @dataProvider providerGetTimeValues
Parameters
int $expected: The expected result from calling the function.
string $index: The index to retrieve.
File
- tests/
src/ Unit/ NodeRevisionDeleteTest.php, line 197
Class
- NodeRevisionDeleteTest
- Tests the NodeRevisionDelete class methods.
Namespace
Drupal\Tests\node_revision_delete\UnitCode
public function testGetTimeValues($expected, $index) {
// Testing the method.
$this
->assertEquals($expected, $this->nodeRevisionDelete
->getTimeValues($index));
}