|
|
|
|
@ -87,6 +87,8 @@ $sources = [
|
|
|
|
|
'register' => file_get_contents($root . '/resources/views/venix/auth/register.tpl'),
|
|
|
|
|
'drawer' => file_get_contents($root . '/resources/views/venix/user/edit.tpl'),
|
|
|
|
|
'runtime' => file_get_contents($root . '/public/theme/venix/js/user-home.js'),
|
|
|
|
|
'account_css' => file_get_contents($root . '/public/cloud/account.css'),
|
|
|
|
|
'client_css' => file_get_contents($root . '/public/cloud/client.css'),
|
|
|
|
|
'schema' => file_get_contents($root . '/sql/ss.sql'),
|
|
|
|
|
'migration' => file_get_contents($root . '/sql/user_profile.sql'),
|
|
|
|
|
];
|
|
|
|
|
@ -115,6 +117,11 @@ foreach ($profileRows[1] as $profileRow) {
|
|
|
|
|
$assert(substr_count($profileRow, '<input ') === 2,
|
|
|
|
|
'Every account information row must contain exactly two inputs.');
|
|
|
|
|
}
|
|
|
|
|
$assert(str_contains($sources['client_css'], 'width: min(540px, 100%)')
|
|
|
|
|
&& str_contains($sources['account_css'], 'grid-template-columns: repeat(2, minmax(0, 1fr))')
|
|
|
|
|
&& !str_contains($sources['account_css'], "body.vu-body .vu-compact-grid,\n body.vu-body .vu-recharge-methods { grid-template-columns: 1fr; }")
|
|
|
|
|
&& preg_match('/@media \(max-width: 420px\) \{\s*body\.vu-body \.vu-compact-grid \{ grid-template-columns: 1fr; \}/s', $sources['account_css']) === 1,
|
|
|
|
|
'The 540px account drawer must stay two-column and collapse profile grids only on narrow phones.');
|
|
|
|
|
|
|
|
|
|
$assert(preg_match('/CREATE TABLE `user` \((.*?)\) ENGINE=/s', $sources['schema'], $userTable) === 1,
|
|
|
|
|
'The fresh user table definition is missing.');
|
|
|
|
|
|