/**
* @internal
*/
class MySQLIncrementerTest extends TestCase
{ use IntegrationTestBehaviour;
private MySQLIncrementer
$mysqlIncrementer;
protected function setUp(): void
{ $this->mysqlIncrementer =
new MySQLIncrementer($this->
getContainer()->
get(Connection::
class));
$this->mysqlIncrementer->
setPool('user-activity-pool'
);
} public function testIncrement(): void
{ $this->mysqlIncrementer->
increment('test-user-1', 'sw.product.index'
);
$list =
$this->mysqlIncrementer->
list('test-user-1'
);
static::
assertNotNull($list['sw.product.index'
]);
static::
assertEquals(1,
$list['sw.product.index'
]['count'
]);