public function CounterTest::testDisableIncrement in Purge 8.3
@covers ::disableIncrement
File
- tests/
src/ Unit/ Counter/ CounterTest.php, line 30
Class
- CounterTest
- @coversDefaultClass \Drupal\purge\Counter\Counter
Namespace
Drupal\Tests\purge\Unit\CounterCode
public function testDisableIncrement() : void {
$counter = new Counter();
$counter
->disableIncrement();
$this
->expectException(\LogicException::class);
$this
->expectExceptionMessage('No ::increment() permission on this object.');
$counter
->increment();
}