You are here

public function CounterTest::testIncrement in Purge 8.3

@covers ::increment

@dataProvider providerTestIncrement()

File

tests/src/Unit/Counter/CounterTest.php, line 223

Class

CounterTest
@coversDefaultClass \Drupal\purge\Counter\Counter

Namespace

Drupal\Tests\purge\Unit\Counter

Code

public function testIncrement($start, $add, $result) : void {
  $counter = new Counter($start);
  $counter
    ->increment($add);
  $this
    ->assertEquals($result, $counter
    ->get());
}