use Shopware\Core\Framework\Feature;
/**
* @internal
*
* @covers \Shopware\Core\Content\Flow\Dispatching\Storer\ScalarValuesStorer
*/
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'
]);
}