You are here

public function CounterTest::testDecrement in Purge 8.3

@covers ::decrement

@dataProvider providerTestDecrement()

File

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

Class

CounterTest
@coversDefaultClass \Drupal\purge\Counter\Counter

Namespace

Drupal\Tests\purge\Unit\Counter

Code

public function testDecrement($start, $subtract, $result) : void {
  $counter = new Counter($start);
  $counter
    ->decrement($subtract);
  $this
    ->assertEquals($result, $counter
    ->get());
}