class ScalarFlowStorerTest extends TestCase
{ public function testCallOldFirst(): void
{ $event =
new BcEvent();
$stored =
[];
$stored =
(new ScalarValuesStorer())->
store($event,
$stored);
// check old value is stored correctly
if (!Feature::
isActive('v6.6.0.0'
)) { $stored =
(new ShopNameStorer())->
store($event,
$stored);
static::
assertArrayHasKey('shopName',
$stored);
static::
assertEquals('my-shop-name',
$stored['shopName'
]);
} // check new value are stored correctly
static::
assertArrayHasKey(ScalarValuesAware::STORE_VALUES,
$stored);
static::
assertArrayHasKey('shopName',
$stored[ScalarValuesAware::STORE_VALUES
]);