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
]);
static::
assertArrayHasKey('whatWhenIChooseAnotherName',
$stored[ScalarValuesAware::STORE_VALUES
]);
static::
assertEquals('my-shop-name',
$stored[ScalarValuesAware::STORE_VALUES
]['shopName'
]);
static::
assertEquals('my-shop-name',
$stored[ScalarValuesAware::STORE_VALUES
]['whatWhenIChooseAnotherName'
]);
$flow =
new StorableFlow('foo', Context::
createDefaultContext(),
$stored,
[]);
(new ScalarValuesStorer())->
restore($flow);
if (!Feature::
isActive('v6.6.0.0'
)) { (new ShopNameStorer())->
restore($flow);
} static::
assertEquals('my-shop-name',
$flow->
getData('shopName'
));
static::
assertEquals('my-shop-name',
$flow->
getData('whatWhenIChooseAnotherName'
));
}