From a6cb9e3a40a161036464b3b8006f3a29774aa414 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 9 Jul 2023 02:32:02 +0000 Subject: [PATCH] backup --- Admin/Install/Editor.install.json | 10 +++++++ Admin/Install/Editor.php | 43 +++++++++++++++++++++++++++++++ info.json | 1 + tests/Bootstrap.php | 6 ++--- 4 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 Admin/Install/Editor.install.json create mode 100644 Admin/Install/Editor.php diff --git a/Admin/Install/Editor.install.json b/Admin/Install/Editor.install.json new file mode 100644 index 0000000..d216049 --- /dev/null +++ b/Admin/Install/Editor.install.json @@ -0,0 +1,10 @@ +[ + { + "type": "type", + "name": "supplier_backend_warning", + "l11n": { + "en": "Backend warning", + "de": "Backend Warnung" + } + } +] \ No newline at end of file diff --git a/Admin/Install/Editor.php b/Admin/Install/Editor.php new file mode 100644 index 0000000..e83a24d --- /dev/null +++ b/Admin/Install/Editor.php @@ -0,0 +1,43 @@ + __DIR__ . '/Editor.install.json']); + } +} diff --git a/info.json b/info.json index 7863307..b68214a 100755 --- a/info.json +++ b/info.json @@ -24,6 +24,7 @@ }, "providing": { "Navigation": "*", + "Editor": "*", "Media": "*" }, "load": [ diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index b5d36a8..4d624b6 100755 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -302,7 +302,7 @@ if (\defined('RESET') && RESET === '1') { $db->exec('DROP DATABASE IF EXISTS ' . $CONFIG['db']['core']['masters']['admin']['database']); $db->exec('CREATE DATABASE IF NOT EXISTS ' . $CONFIG['db']['core']['masters']['admin']['database']); $db = null; - } catch (\Throwable $t) { + } catch (\Throwable $_) { echo "\nCouldn't connect to MYSQL DB\n"; } } @@ -317,7 +317,7 @@ if (\defined('RESET') && RESET === '1') { $db->exec('DROP DATABASE IF EXISTS ' . $CONFIG['db']['core']['postgresql']['admin']['database']); $db->exec('CREATE DATABASE ' . $CONFIG['db']['core']['postgresql']['admin']['database']); $db = null; - } catch (\Throwable $t) { + } catch (\Throwable $_) { echo "\nCouldn't connect to POSTGRESQL DB\n"; } } @@ -332,7 +332,7 @@ if (\defined('RESET') && RESET === '1') { $db->exec('DROP DATABASE IF EXISTS ' . $CONFIG['db']['core']['mssql']['admin']['database']); $db->exec('CREATE DATABASE ' . $CONFIG['db']['core']['mssql']['admin']['database']); $db = null; - } catch (\Throwable $t) { + } catch (\Throwable $_) { echo "\nCouldn't connect to MSSQL DB\n"; } }