You are here

public function NodeRevisionDeleteTest::testGetTimeNumberString in Node Revision Delete 8

Tests the getTimeNumberString() method.

@covers ::getTimeNumberString @dataProvider providerGetTimeNumberString

Parameters

int $expected: The expected result from calling the function.

string $number: The number.

string $time: The time option (days, weeks or months).

File

tests/src/Unit/NodeRevisionDeleteTest.php, line 258

Class

NodeRevisionDeleteTest
Tests the NodeRevisionDelete class methods.

Namespace

Drupal\Tests\node_revision_delete\Unit

Code

public function testGetTimeNumberString($expected, $number, $time) {

  // Testing the method.
  $this
    ->assertEquals($expected, $this->nodeRevisionDelete
    ->getTimeNumberString($number, $time));
}