You are here

public function FacetsDateHandlerTest::testNextDateIncrement in Facets 8

Tests for ::nextDateIncrement method.

@dataProvider provideNextDateIncrementData

File

tests/src/Unit/Utility/FacetsDateHandlerTest.php, line 184

Class

FacetsDateHandlerTest
Unit test for Date Handler Service.

Namespace

Drupal\Tests\facets\Unit\Utility

Code

public function testNextDateIncrement($incremented_iso_date, $gap) {
  $this
    ->assertEquals($incremented_iso_date, $this->handler
    ->getNextDateIncrement(static::ISO_DATE, $gap));
}