$offset =
new IndexerOffset( ['foo', 'bar'
],
['product', 'product_manufacturer'
],
$timestamp );
static::
assertEquals(ProductDefinition::ENTITY_NAME,
$offset->
getDefinition());
static::
assertTrue($offset->
hasNextDefinition());
static::
assertSame($timestamp,
$offset->
getTimestamp());
static::
assertNull($offset->
getLastId());
$offset->
selectNextDefinition();
static::
assertEquals(ProductManufacturerDefinition::ENTITY_NAME,
$offset->
getDefinition());
static::
assertEmpty($offset->
getDefinitions());
static::
assertFalse($offset->
hasNextDefinition());
$offset->
resetDefinitions();
static::
assertEquals(ProductDefinition::ENTITY_NAME,
$offset->
getDefinition());
static::
assertEquals( [ ProductManufacturerDefinition::ENTITY_NAME,
],