ArrayIncrementer example

/** * @internal */
class ArrayIncrementerTest extends TestCase
{
    use IntegrationTestBehaviour;

    private ArrayIncrementer $arrayIncrementer;

    protected function setUp(): void
    {
        $this->arrayIncrementer = new ArrayIncrementer();
        $this->arrayIncrementer->setPool('user-activity-pool');
    }

    public function testDecrementDoesNotCreate(): void
    {
        $this->arrayIncrementer->decrement('test', 'test');
        static::assertEmpty($this->arrayIncrementer->list('test'));
    }

    public function testIncrement(): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.