'host' => 'localhost',
'schema' => 'https',
'basePath' => '/shop',
'blueGreenDeployment' => true,
],
$connection);
// assert that system language was updated
static::
assertSame('Deutsch',
$connection->
fetchOne('SELECT `name` from `language` WHERE `id` = ?',
[Uuid::
fromHexToBytes(Defaults::LANGUAGE_SYSTEM
)]));
// assert that default currency was updated
static::
assertSame('USD',
$connection->
fetchOne('SELECT `iso_code` from `currency` WHERE `id` = ?',
[Uuid::
fromHexToBytes(Defaults::CURRENCY
)]));
$currencies =
$connection->
fetchAllKeyValue('SELECT `id`, `iso_code` from `currency`'
);
// assert that not configured currencies are deleted
static::
assertEqualsCanonicalizing(['USD', 'EUR', 'CHF'
],
array_values($currencies));
// assert that sales channel was created
$id =
$connection->
fetchOne('SELECT `sales_channel_id` FROM `sales_channel_translation` WHERE `name` = ?',
['test-shop'
]);
static::
assertIsString($id);
$salesChannel =
$connection->
fetchAssociative('SELECT * FROM `sales_channel` WHERE `id` = ?',
[$id]);
static::
assertIsArray($salesChannel);
static::
assertSame(Uuid::
fromHexToBytes(Defaults::CURRENCY
),
$salesChannel['currency_id'
]);
static::
assertSame(Uuid::
fromHexToBytes(Defaults::LANGUAGE_SYSTEM
),
$salesChannel['language_id'
]);