From da45d04dd0688664febda81f453cd4dab01fea98 Mon Sep 17 00:00:00 2001 From: Basil Suter Date: Mon, 27 Nov 2017 13:32:51 +0100 Subject: [PATCH] remove generic and boostrap3 blocks #1572 --- .../cms/src/frontend/blocks/AudioBlock.php | 80 --------- modules/cms/src/frontend/blocks/DevBlock.php | 69 -------- .../cms/src/frontend/blocks/FileListBlock.php | 79 --------- modules/cms/src/frontend/blocks/FormBlock.php | 159 ------------------ .../cms/src/frontend/blocks/ImageBlock.php | 141 ---------------- .../src/frontend/blocks/ImageTextBlock.php | 145 ---------------- .../cms/src/frontend/blocks/LayoutBlock.php | 105 ------------ modules/cms/src/frontend/blocks/LineBlock.php | 88 ---------- .../src/frontend/blocks/LinkButtonBlock.php | 92 ---------- modules/cms/src/frontend/blocks/ListBlock.php | 85 ---------- modules/cms/src/frontend/blocks/MapBlock.php | 118 ------------- .../cms/src/frontend/blocks/QuoteBlock.php | 70 -------- .../cms/src/frontend/blocks/SpacingBlock.php | 95 ----------- .../cms/src/frontend/blocks/TableBlock.php | 151 ----------------- modules/cms/src/frontend/blocks/TextBlock.php | 101 ----------- .../cms/src/frontend/blocks/TitleBlock.php | 81 --------- .../cms/src/frontend/blocks/VideoBlock.php | 152 ----------------- .../cms/src/frontend/blocks/WysiwygBlock.php | 72 -------- .../frontend/commands/UpdaterController.php | 49 +++++- .../src/frontend/views/blocks/AudioBlock.php | 6 - .../src/frontend/views/blocks/DevBlock.php | 45 ----- .../frontend/views/blocks/FileListBlock.php | 12 -- .../src/frontend/views/blocks/FormBlock.php | 53 ------ .../src/frontend/views/blocks/ImageBlock.php | 28 --- .../frontend/views/blocks/ImageTextBlock.php | 29 ---- .../src/frontend/views/blocks/LayoutBlock.php | 13 -- .../src/frontend/views/blocks/LineBlock.php | 6 - .../frontend/views/blocks/LinkButtonBlock.php | 13 -- .../src/frontend/views/blocks/ListBlock.php | 12 -- .../src/frontend/views/blocks/MapBlock.php | 10 -- .../src/frontend/views/blocks/QuoteBlock.php | 6 - .../frontend/views/blocks/SpacingBlock.php | 6 - .../src/frontend/views/blocks/TableBlock.php | 29 ---- .../src/frontend/views/blocks/TextBlock.php | 10 -- .../src/frontend/views/blocks/TitleBlock.php | 10 -- .../src/frontend/views/blocks/VideoBlock.php | 16 -- .../frontend/views/blocks/WysiwygBlock.php | 6 - .../src/frontend/blocks/AudioBlockTest.php | 21 --- .../src/frontend/blocks/DevBlockTest.php | 15 -- .../src/frontend/blocks/FileListBlockTest.php | 32 ---- .../src/frontend/blocks/FormBlockTest.php | 26 --- .../src/frontend/blocks/ImageBlockTest.php | 78 --------- .../frontend/blocks/ImageTextBlockTest.php | 50 ------ .../src/frontend/blocks/LayoutBlockTest.php | 40 ----- .../src/frontend/blocks/LineBlockTest.php | 27 --- .../frontend/blocks/LinkButtonBlockTest.php | 43 ----- .../src/frontend/blocks/ListBlockTest.php | 27 --- .../src/frontend/blocks/MapBlockTest.php | 29 ---- .../src/frontend/blocks/QuoteBlockTest.php | 21 --- .../src/frontend/blocks/SpacingBlockTest.php | 33 ---- .../src/frontend/blocks/TableBlockTest.php | 63 ------- .../src/frontend/blocks/TextBlockTest.php | 62 ------- .../src/frontend/blocks/TitleBlockTest.php | 36 ---- .../src/frontend/blocks/VideoBlockTest.php | 63 ------- .../src/frontend/blocks/WysiwygBlockTest.php | 21 --- 55 files changed, 42 insertions(+), 2887 deletions(-) delete mode 100644 modules/cms/src/frontend/blocks/AudioBlock.php delete mode 100644 modules/cms/src/frontend/blocks/DevBlock.php delete mode 100644 modules/cms/src/frontend/blocks/FileListBlock.php delete mode 100644 modules/cms/src/frontend/blocks/FormBlock.php delete mode 100644 modules/cms/src/frontend/blocks/ImageBlock.php delete mode 100644 modules/cms/src/frontend/blocks/ImageTextBlock.php delete mode 100644 modules/cms/src/frontend/blocks/LayoutBlock.php delete mode 100644 modules/cms/src/frontend/blocks/LineBlock.php delete mode 100644 modules/cms/src/frontend/blocks/LinkButtonBlock.php delete mode 100644 modules/cms/src/frontend/blocks/ListBlock.php delete mode 100644 modules/cms/src/frontend/blocks/MapBlock.php delete mode 100644 modules/cms/src/frontend/blocks/QuoteBlock.php delete mode 100644 modules/cms/src/frontend/blocks/SpacingBlock.php delete mode 100644 modules/cms/src/frontend/blocks/TableBlock.php delete mode 100644 modules/cms/src/frontend/blocks/TextBlock.php delete mode 100644 modules/cms/src/frontend/blocks/TitleBlock.php delete mode 100644 modules/cms/src/frontend/blocks/VideoBlock.php delete mode 100644 modules/cms/src/frontend/blocks/WysiwygBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/AudioBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/DevBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/FileListBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/FormBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/ImageBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/ImageTextBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/LayoutBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/LineBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/LinkButtonBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/ListBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/MapBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/QuoteBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/SpacingBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/TableBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/TextBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/TitleBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/VideoBlock.php delete mode 100644 modules/cms/src/frontend/views/blocks/WysiwygBlock.php delete mode 100644 modules/cms/tests/src/frontend/blocks/AudioBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/DevBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/FileListBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/FormBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/ImageBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/ImageTextBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/LayoutBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/LineBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/LinkButtonBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/ListBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/MapBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/QuoteBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/SpacingBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/TableBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/TextBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/TitleBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/VideoBlockTest.php delete mode 100644 modules/cms/tests/src/frontend/blocks/WysiwygBlockTest.php diff --git a/modules/cms/src/frontend/blocks/AudioBlock.php b/modules/cms/src/frontend/blocks/AudioBlock.php deleted file mode 100644 index 9a8e7ad59..000000000 --- a/modules/cms/src/frontend/blocks/AudioBlock.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @since 1.0.0 - */ -final class AudioBlock extends PhpBlock -{ - /** - * @inheritdoc - */ - public $module = 'cms'; - - /** - * @inheritdoc - */ - public $cacheEnabled = true; - - /** - * @inheritdoc - */ - public function name() - { - return Module::t('block_audio_name'); - } - - /** - * @inheritdoc - */ - public function blockGroup() - { - return MediaGroup::class; - } - - /** - * @inheritdoc - */ - public function icon() - { - return 'volume_up'; - } - - /** - * @inheritdoc - */ - public function config() - { - return [ - 'vars' => [ - ['var' => 'soundUrl', 'label' => 'Embeded Code', 'type' => 'zaa-text'], - ], - ]; - } - - /** - * @inheritdoc - */ - public function getFieldHelp() - { - return [ - 'soundUrl' => Module::t('block_audio_help_soundurl'), - ]; - } - - /** - * @inheritdoc - */ - public function admin() - { - return '

Audio Block: {% if vars.soundUrl is empty %}'.Module::t('block_audio_admin_nourl').'{% else %}'.Module::t('block_audio_admin_hasurl').'{% endif %}

'; - } -} diff --git a/modules/cms/src/frontend/blocks/DevBlock.php b/modules/cms/src/frontend/blocks/DevBlock.php deleted file mode 100644 index db35587e4..000000000 --- a/modules/cms/src/frontend/blocks/DevBlock.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @since 1.0.0 - */ -final class DevBlock extends PhpBlock -{ - /** - * @inheritdoc - */ - public $module = 'cms'; - - /** - * @inheritdoc - */ - public function blockGroup() - { - return DevelopmentGroup::className(); - } - - /** - * @inheritdoc - */ - public function name() - { - return Module::t('block_dev_name'); - } - - /** - * @inheritdoc - */ - public function icon() - { - return 'developer_mode'; - } - - /** - * @inheritdoc - */ - public function config() - { - return []; - } - - /** - * @inheritdoc - */ - public function admin() - { - return '

' . Module::t('block_dev_name') . '

'; - } - - /** - * @inheritdoc - */ - public function getIsDirtyDialogEnabled() - { - return false; - } -} diff --git a/modules/cms/src/frontend/blocks/FileListBlock.php b/modules/cms/src/frontend/blocks/FileListBlock.php deleted file mode 100644 index b0bfd55ad..000000000 --- a/modules/cms/src/frontend/blocks/FileListBlock.php +++ /dev/null @@ -1,79 +0,0 @@ - - * @since 1.0.0 - */ -final class FileListBlock extends PhpBlock -{ - /** - * @inheritdoc - */ - public $module = 'cms'; - - /** - * @inheritdoc - */ - public $cacheEnabled = true; - - /** - * @inheritdoc - */ - public function name() - { - return Module::t('block_file_list_name'); - } - - /** - * @inheritdoc - */ - public function icon() - { - return 'attachment'; - } - - /** - * @inheritdoc - */ - public function config() - { - return [ - 'vars' => [ - ['var' => 'files', 'label' => Module::t("block_file_list_files_label"), 'type' => 'zaa-file-array-upload'], - ], - 'cfgs' => [ - ['var' => 'showType', 'label' => Module::t("block_file_list_files_showtype_label"), 'initvalue' => 0, 'type' => 'zaa-select', 'options' => [ - ['value' => '1', 'label' => Module::t("block_file_list_showtype_yes")], - ['value' => '0', 'label' => Module::t("block_file_list_showtype_no")], - ], - ], - ], - ]; - } - - /** - * @inheritdoc - */ - public function extraVars() - { - return [ - 'fileList' => BlockHelper::fileArrayUpload($this->getVarValue('files')), - ]; - } - - /** - * @inheritdoc - */ - public function admin() - { - return '{% if extras.fileList is empty %}

'.Module::t('block_file_list_admin_empty').'

{% else %}{% endif %}'; - } -} diff --git a/modules/cms/src/frontend/blocks/FormBlock.php b/modules/cms/src/frontend/blocks/FormBlock.php deleted file mode 100644 index c57cb9cc7..000000000 --- a/modules/cms/src/frontend/blocks/FormBlock.php +++ /dev/null @@ -1,159 +0,0 @@ - - * @since 1.0.0 - */ -final class FormBlock extends PhpBlock -{ - public $module = 'cms'; - - public $defaultNameLabel = 'Name'; - - public $defaultNamePlaceholder = 'Vor- und Nachname'; - - public $defaultNameError = 'Bitte geben Sie einen Namen ein'; - - public $defaultEmailLabel = 'Email'; - - public $defaultEmailPlaceholder = 'beispiel@beispiel.ch'; - - public $defaultEmailError = 'Bitte geben Sie eine Emailadresse ein'; - - public $defaultMessageLabel = 'Nachricht'; - - public $defaultMessageError = 'Bitte geben Sie eine Nachricht ein'; - - public $defaultSendLabel = 'Absenden'; - - public $defaultSendError = 'Leider ist ein Fehler beim Senden der Nachricht aufgetreten.'; - - public $defaultSendSuccess = 'Vielen Dank! Wir werden uns mit Ihnen in Verbindung setzen.'; - - public $defaultMailSubject = 'Kontaktanfrage'; - - public function name() - { - return Module::t("block_form_name"); - } - - public function icon() - { - return 'email'; - } - - public function config() - { - return [ - 'vars' => [ - ['var' => 'emailAddress', 'label' => 'Email wird an folgende Adresse gesendet', 'type' => 'zaa-text'], - ['var' => 'headline', 'label' => 'Überschrift', 'type' => 'zaa-text', 'placeholder' => 'Kontakt'], - ['var' => 'nameLabel', 'label' => 'Text für Feld "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNameLabel], - ['var' => 'emailLabel', 'label' => 'Text für Feld "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailLabel], - ['var' => 'messageLabel', 'label' => 'Text für Feld "Nachricht"', 'type' => 'zaa-text', 'placeholder' => $this->defaultMessageLabel], - ['var' => 'sendLabel', 'label' => 'Text auf dem Absendebutton', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendLabel], - ], - - 'cfgs' => [ - ['var' => 'subjectText', 'label' => 'Betreff in der Email', 'type' => 'zaa-text', 'placeholder' => $this->defaultMailSubject], - ['var' => 'namePlaceholder', 'label' => 'Platzhalter im Feld "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNamePlaceholder], - ['var' => 'emailPlaceholder', 'label' => 'Platzhalter im Feld "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailPlaceholder], - ['var' => 'nameError', 'label' => 'Fehlermeldung für Feld "Name"', 'type' => 'zaa-text', 'placeholder' => $this->defaultNameError], - ['var' => 'emailError', 'label' => 'Fehlermeldung für Feld "Email"', 'type' => 'zaa-text', 'placeholder' => $this->defaultEmailError], - ['var' => 'messageError', 'label' => 'Fehlermeldung für Feld "Nachricht"', 'type' => 'zaa-text', 'placeholder' => $this->defaultMessageError], - ['var' => 'sendSuccess', 'label' => 'Bestätigungstext nach Absenden des Formulars', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendSuccess], - ['var' => 'sendError', 'label' => 'Fehlertext nach fehlgeschlagenem Sendeversuch des Formulars', 'type' => 'zaa-text', 'placeholder' => $this->defaultSendError], - ], - ]; - } - - public function extraVars() - { - return [ - 'nameLabel' => $this->getVarValue('nameLabel', $this->defaultNameLabel), - 'namePlaceholder' => $this->getCfgValue('namePlaceholder', $this->defaultNamePlaceholder), - 'nameError' => $this->getCfgValue('nameError', $this->defaultNameError), - 'emailLabel' => $this->getVarValue('emailLabel', $this->defaultEmailLabel), - 'emailPlaceholder' => $this->getCfgValue('emailPlaceholder', $this->defaultEmailPlaceholder), - 'emailError' => $this->getCfgValue('emailError', $this->defaultEmailError), - 'messageLabel' => $this->getVarValue('messageLabel', $this->defaultMessageLabel), - 'messageError' => $this->getCfgValue('messageError', $this->defaultMessageError), - 'sendLabel' => $this->getVarValue('sendLabel', $this->defaultSendLabel), - 'sendError' => $this->getCfgValue('sendError', $this->defaultSendError), - 'sendSuccess' => $this->getCfgValue('sendSuccess', $this->defaultSendSuccess), - 'subjectText' => $this->getCfgValue('subjectText', $this->defaultMailSubject), - 'message' => Yii::$app->request->post('message'), - 'name' => Yii::$app->request->post('name'), - 'email' => Yii::$app->request->post('email'), - 'mailerResponse' => $this->getPostResponse(), - 'csrf' => Yii::$app->request->csrfToken, - 'nameErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('name') ? 1 : 0): 1, - 'emailErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('email') ? 1 : 0): 1, - 'messageErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('message') ? 1 : 0): 1, - ]; - } - - public function sendMail($message, $email, $name) - { - $email = Html::encode($email); - $name = Html::encode($name); - - $html = "

You have recieved an E-Mail via Form Block on " . Url::base(true)."

"; - $html.= "

From: " . $name." ($email)
Time:".date("d.m.Y - H:i"). "
"; - $html.= "Message:
" . nl2br(Html::encode($message)) ."

"; - - $mail = Yii::$app->mail; - $mail->fromName = $name; - $mail->from = $email; - $mail->compose($this->getVarValue('subjectText', $this->defaultMailSubject), $html); - $mail->address($this->getVarValue('emailAddress')); - - if (!$mail->send()) { - return 'Error: '.$mail->error; - } else { - return 'success'; - } - } - - public function getPostResponse() - { - $request = Yii::$app->request; - - if (Yii::$app->request->isPost) { - if ($request->post('message') && $request->post('email') && $request->post('name')) { - return $this->sendMail($request->post('message'), $request->post('email'), $request->post('name')); - } - } - } - - public function admin() - { - return '

Form Block

{% if vars.emailAddress is not empty %}'. - '{% if vars.headline is not empty %}

{{ vars.headline }}

{% endif %}'. - '
'. - ''. - '
'. - '
'. - '
'. - ''. - '
'. - '
'. - '
'. - ''. - '
- extraValue('messageErrorFlag')): ?> -

extraValue('messageError'); ?>

- -
-
-
-
- -
-
- - - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/ImageBlock.php b/modules/cms/src/frontend/views/blocks/ImageBlock.php deleted file mode 100644 index d6b44057d..000000000 --- a/modules/cms/src/frontend/views/blocks/ImageBlock.php +++ /dev/null @@ -1,28 +0,0 @@ - -extraValue('image')): ?> -
-
- extraValue('link')): ?> - - - $this->extraValue('image')['source'], - 'alt' => $this->varValue('caption', ''), - 'title' => $this->varValue('caption', null), - 'width' => $this->cfgValue('width', null), - 'height' => $this->cfgValue('height', null), - 'class' => 'img-responsive' . $this->cfgValue('cssClass', null, ' {{cssClass}}'), - ]); ?> - extraValue('link')): ?> - - - extraValue('text', null, '
{{text}}
')?> -
-
- \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/ImageTextBlock.php b/modules/cms/src/frontend/views/blocks/ImageTextBlock.php deleted file mode 100644 index ef37e6453..000000000 --- a/modules/cms/src/frontend/views/blocks/ImageTextBlock.php +++ /dev/null @@ -1,29 +0,0 @@ - -extraValue('image') && $this->extraValue('text')): ?> -
- extraValue('image')['source'], [ - 'class' => ($this->varValue('imagePosition', 'left') == 'left') ? 'pull-left img-responsive' : 'pull-right img-responsive', - 'width' => $this->cfgValue('width', null), - 'height' => $this->cfgValue('height', null), - 'style' => (($this->varValue('imagePosition', 'left') == 'left') ? "margin-right:{$this->cfgValue('margin', '20px')}" : "margin-left:{$this->cfgValue('margin', '20px')}") . $this->cfgValue('margin', '20px', ';margin-bottom:{{margin}};max-width:50%;'), - ])?> -
- extraValue('text'); ?> - - cfgValue('btnHref') && $this->cfgValue('btnLabel')): ?> -
- cfgValue('btnLabel'), $this->cfgValue('btnHref'), [ - 'class' => 'button', - 'target' => ($this->cfgValue('targetBlank') == 1) ? '_blank' : null, - ]); ?> - -
-
-
- \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/LayoutBlock.php b/modules/cms/src/frontend/views/blocks/LayoutBlock.php deleted file mode 100644 index c34049c73..000000000 --- a/modules/cms/src/frontend/views/blocks/LayoutBlock.php +++ /dev/null @@ -1,13 +0,0 @@ - -
-
- placeholderValue('left'); ?> -
-
- placeholderValue('right'); ?> -
-
\ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/LineBlock.php b/modules/cms/src/frontend/views/blocks/LineBlock.php deleted file mode 100644 index dd6c6e225..000000000 --- a/modules/cms/src/frontend/views/blocks/LineBlock.php +++ /dev/null @@ -1,6 +0,0 @@ - -
\ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/LinkButtonBlock.php b/modules/cms/src/frontend/views/blocks/LinkButtonBlock.php deleted file mode 100644 index d6dd16da9..000000000 --- a/modules/cms/src/frontend/views/blocks/LinkButtonBlock.php +++ /dev/null @@ -1,13 +0,0 @@ - -extraValue('linkData'))): ?> - varValue('label'), $this->extraValue('linkData')->getHref(), [ - 'class' => $this->extraValue('cssClass', null), - 'target' =>$this->extraValue('linkData')->getTarget(), - ]); ?> - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/ListBlock.php b/modules/cms/src/frontend/views/blocks/ListBlock.php deleted file mode 100644 index 5f7bcd24c..000000000 --- a/modules/cms/src/frontend/views/blocks/ListBlock.php +++ /dev/null @@ -1,12 +0,0 @@ - -varValue('elements'))): ?> -<extraValue('listType', 'ul'); ?>> - varValue('elements') as $item): ?> -
  • - -extraValue('listType', 'ul'); ?>> - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/MapBlock.php b/modules/cms/src/frontend/views/blocks/MapBlock.php deleted file mode 100644 index 87d52727c..000000000 --- a/modules/cms/src/frontend/views/blocks/MapBlock.php +++ /dev/null @@ -1,10 +0,0 @@ - -varValue('address'))):?> -
    - -
    - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/QuoteBlock.php b/modules/cms/src/frontend/views/blocks/QuoteBlock.php deleted file mode 100644 index 546e7bc7c..000000000 --- a/modules/cms/src/frontend/views/blocks/QuoteBlock.php +++ /dev/null @@ -1,6 +0,0 @@ - -varValue('content', null, '
    {{content}}
    '); ?> \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/SpacingBlock.php b/modules/cms/src/frontend/views/blocks/SpacingBlock.php deleted file mode 100644 index ad4f9811b..000000000 --- a/modules/cms/src/frontend/views/blocks/SpacingBlock.php +++ /dev/null @@ -1,6 +0,0 @@ - -

    varValue('spacing', 1);$i++): ?>

    \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/TableBlock.php b/modules/cms/src/frontend/views/blocks/TableBlock.php deleted file mode 100644 index 0b65e2496..000000000 --- a/modules/cms/src/frontend/views/blocks/TableBlock.php +++ /dev/null @@ -1,29 +0,0 @@ - -extraValue('table'))): ?> -cfgValue('divCssClass', null, ' class="{{divCssClass}}"'); ?>> - - cfgValue('header')): ?> - - - extraValue('headerData', []) as $column): ?> - - - - - - - extraValue('table', []) as $row): ?> - - - cfgValue('equaldistance')): ?> class="col-md-"> - - - - -
    - - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/TextBlock.php b/modules/cms/src/frontend/views/blocks/TextBlock.php deleted file mode 100644 index ac41a1043..000000000 --- a/modules/cms/src/frontend/views/blocks/TextBlock.php +++ /dev/null @@ -1,10 +0,0 @@ - -varValue('textType') == 0): ?> -cfgValue('cssClass', null, ' class="{{cssClass}}"'); ?>>extraValue('text'); ?>

    - -extraValue('text'); ?> - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/TitleBlock.php b/modules/cms/src/frontend/views/blocks/TitleBlock.php deleted file mode 100644 index 231f5195a..000000000 --- a/modules/cms/src/frontend/views/blocks/TitleBlock.php +++ /dev/null @@ -1,10 +0,0 @@ - -varValue('content'))): ?> -<varValue('headingType', 'h2') . $this->cfgValue('cssClass', null, ' class="{{cssClass}}"'); ?>> -varValue('content'); ?> -varValue('headingType', 'h2', ''); ?> - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/VideoBlock.php b/modules/cms/src/frontend/views/blocks/VideoBlock.php deleted file mode 100644 index bc889465b..000000000 --- a/modules/cms/src/frontend/views/blocks/VideoBlock.php +++ /dev/null @@ -1,16 +0,0 @@ - -extraValue('url')): ?> - cfgValue('width')): ?> -
    - -
    - -
    - cfgValue('width')): ?> -
    - - \ No newline at end of file diff --git a/modules/cms/src/frontend/views/blocks/WysiwygBlock.php b/modules/cms/src/frontend/views/blocks/WysiwygBlock.php deleted file mode 100644 index 56d58c35e..000000000 --- a/modules/cms/src/frontend/views/blocks/WysiwygBlock.php +++ /dev/null @@ -1,6 +0,0 @@ - -varValue('content'); ?> \ No newline at end of file diff --git a/modules/cms/tests/src/frontend/blocks/AudioBlockTest.php b/modules/cms/tests/src/frontend/blocks/AudioBlockTest.php deleted file mode 100644 index a867f0f34..000000000 --- a/modules/cms/tests/src/frontend/blocks/AudioBlockTest.php +++ /dev/null @@ -1,21 +0,0 @@ -assertSame('', $this->block->renderFrontend()); - } - - public function testContent() - { - $this->block->setVarValues(['soundUrl' => 'embed']); - $this->assertContains('
    embed
    ', $this->block->renderFrontend()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/DevBlockTest.php b/modules/cms/tests/src/frontend/blocks/DevBlockTest.php deleted file mode 100644 index 499b9d983..000000000 --- a/modules/cms/tests/src/frontend/blocks/DevBlockTest.php +++ /dev/null @@ -1,15 +0,0 @@ -assertNotEmpty($this->renderFrontend()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/FileListBlockTest.php b/modules/cms/tests/src/frontend/blocks/FileListBlockTest.php deleted file mode 100644 index cb73c340e..000000000 --- a/modules/cms/tests/src/frontend/blocks/FileListBlockTest.php +++ /dev/null @@ -1,32 +0,0 @@ -assertEmpty($this->renderFrontend()); - } - - public function testFiles() - { - $this->block->addExtraVar('fileList', [ - ['href' => 'path/to/image.jpg', 'caption' => 'foobar', 'extension' => 'jpg'], - ]); - $this->assertContains('', $this->renderFrontendNoSpace()); - } - - public function testFilesWithSuffix() - { - $this->block->setCfgValues(['showType' => 1]); - $this->block->addExtraVar('fileList', [ - ['href' => 'path/to/image.jpg', 'caption' => 'foobar', 'extension' => 'jpg'], - ]); - $this->assertContains('', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/FormBlockTest.php b/modules/cms/tests/src/frontend/blocks/FormBlockTest.php deleted file mode 100644 index bbb627202..000000000 --- a/modules/cms/tests/src/frontend/blocks/FormBlockTest.php +++ /dev/null @@ -1,26 +0,0 @@ -assertEmpty($this->renderFrontend()); - } - - public function testBasicInput() - { - $this->block->setVarValues([ - 'headline' => 'My Form', - 'emailAddress' => 'hello@luya.io', - ]); - - $this->assertContains('

    My Form

    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/ImageBlockTest.php b/modules/cms/tests/src/frontend/blocks/ImageBlockTest.php deleted file mode 100644 index 4171b5c2c..000000000 --- a/modules/cms/tests/src/frontend/blocks/ImageBlockTest.php +++ /dev/null @@ -1,78 +0,0 @@ -assertSame('', $this->renderFrontend()); - } - - public function testImageId() - { - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testCaption() - { - $this->block->setVarValues(['caption' => 'cap']); - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    cap

    cap

    ', $this->renderFrontendNoSpace()); - } - - public function testNewlineCaption() - { - $this->block->setVarValues(['caption' => "cap - tion"]); // using \n or \r does not work within this context. - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    cap tion

    cap
    tion

    ', $this->renderFrontendNoSpace()); - } - - public function testMarkdownCaption() - { - $this->block->setVarValues(['caption' => '##cap', 'textType' => 1]); - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    ##cap

    cap

    ', $this->renderFrontendNoSpace()); - } - - public function testWidthHeight() - { - $this->block->setCfgValues(['width' => 100, 'height' => 100]); - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testInternalLink() - { - $this->block->setCfgValues(['internalLink' => 1]); - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testExternalLink() - { - $this->block->setCfgValues(['externalLink' => 'https://luya.io']); - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testLinkPriority() - { - $this->block->setCfgValues(['externalLink' => 'https://luya.io', 'internalLink' => 1]); - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testDivClassClass() - { - $this->block->setCfgValues(['divCssClass' => 'foobar']); - $this->block->addExtraVar('image', ['source' => 'luya.jpg']); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/ImageTextBlockTest.php b/modules/cms/tests/src/frontend/blocks/ImageTextBlockTest.php deleted file mode 100644 index 157536890..000000000 --- a/modules/cms/tests/src/frontend/blocks/ImageTextBlockTest.php +++ /dev/null @@ -1,50 +0,0 @@ -assertSame('', $this->renderFrontend()); - } - - public function testImagehttpSource() - { - $this->block->setVarValues(['text' => 'Text']); - $this->block->addExtraVar('image', ['source' => 'image.jpg', ]); - - $this->assertSame('

    Text

    ', $this->renderFrontendNoSpace()); - } - - public function testButton() - { - $this->block->setVarValues(['text' => 'Text']); - $this->block->setCfgValues(['btnHref' => 'https://luya.io', 'btnLabel' => 'Button']); - $this->block->addExtraVar('image', ['source' => 'image.jpg', ]); - - $this->assertSame('

    Text


    Button
    ', $this->renderFrontendNoSpace()); - } - - public function testButtonTargetBlank() - { - $this->block->setVarValues(['text' => 'Text']); - $this->block->setCfgValues(['btnHref' => 'https://luya.io', 'btnLabel' => 'Button', 'targetBlank' => 1]); - $this->block->addExtraVar('image', ['source' => 'image.jpg', ]); - - $this->assertSame('

    Text


    Button
    ', $this->renderFrontendNoSpace()); - } - - public function testWidthHeight() - { - $this->block->setVarValues(['text' => 'Text']); - $this->block->setCfgValues(['width' => 100, 'height' => 100]); - $this->block->addExtraVar('image', ['source' => 'image.jpg', ]); - - $this->assertSame('

    Text

    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/LayoutBlockTest.php b/modules/cms/tests/src/frontend/blocks/LayoutBlockTest.php deleted file mode 100644 index 9f9cae9f9..000000000 --- a/modules/cms/tests/src/frontend/blocks/LayoutBlockTest.php +++ /dev/null @@ -1,40 +0,0 @@ -assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testWidthCol() - { - $this->block->setVarValues(['width' => 8]); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testCssClassInput() - { - $this->block->setCfgValues([ - 'leftColumnClasses' => 'leftclass', - 'rightColumnClasses' => 'rightclass', - 'rowDivClass' => 'rowclass', - ]); - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testPlaceholderValues() - { - $this->block->setPlaceholderValues([ - 'left' => 'left content', - 'right' => 'right content', - ]); - $this->assertSame('
    left content
    right content
    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/LineBlockTest.php b/modules/cms/tests/src/frontend/blocks/LineBlockTest.php deleted file mode 100644 index d17b00722..000000000 --- a/modules/cms/tests/src/frontend/blocks/LineBlockTest.php +++ /dev/null @@ -1,27 +0,0 @@ -assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testVars() - { - $this->block->setVarValues([ - 'lineSpace' => '10px', - 'lineStyle' => 'dotted', - 'lineWidth' => '3px', - 'lineColor' => '#000', - ]); - - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/LinkButtonBlockTest.php b/modules/cms/tests/src/frontend/blocks/LinkButtonBlockTest.php deleted file mode 100644 index 9e911430f..000000000 --- a/modules/cms/tests/src/frontend/blocks/LinkButtonBlockTest.php +++ /dev/null @@ -1,43 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testLinkLinkSource() - { - $this->block->setVarValues([ - 'linkData' => ['type' => 2, 'value' => 'https://luya.io'] - ]); - $this->assertSame('', $this->renderFrontendNoSpace()); - } - - public function testLinkLinkSourceWithLabel() - { - $this->block->setVarValues(['label' => 'label', 'linkData' => ['type' => 2, 'value' => 'https://luya.io']]); - $this->assertSame('label', $this->renderFrontendNoSpace()); - } - - public function testLinkLinkSourceWithLabelBlank() - { - $this->block->setVarValues(['label' => 'label', 'linkData' => ['type' => 2, 'value' => 'https://luya.io']]); - $this->block->setCfgValues(['targetBlank' => 1]); - $this->assertSame('label', $this->renderFrontendNoSpace()); - } - - public function testLinkLinkSourceWithLabelBlankSimpleLink() - { - $this->block->setVarValues(['label' => 'label', 'linkData' => ['type' => 2, 'value' => 'https://luya.io']]); - $this->block->setCfgValues(['targetBlank' => 1, 'simpleLink' => 1]); - $this->assertSame('label', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/ListBlockTest.php b/modules/cms/tests/src/frontend/blocks/ListBlockTest.php deleted file mode 100644 index 9836431b8..000000000 --- a/modules/cms/tests/src/frontend/blocks/ListBlockTest.php +++ /dev/null @@ -1,27 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testElements() - { - $this->block->setVarValues(['elements' => [['value' => 1], ['value' => 2]]]); - $this->assertSame('
    • 1
    • 2
    ', $this->renderFrontendNoSpace()); - } - - public function testElementsOl() - { - $this->block->setVarValues(['elements' => [['value' => 1], ['value' => 2]], 'listType' => 'ol']); - $this->assertSame('
    1. 1
    2. 2
    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/MapBlockTest.php b/modules/cms/tests/src/frontend/blocks/MapBlockTest.php deleted file mode 100644 index c3f297780..000000000 --- a/modules/cms/tests/src/frontend/blocks/MapBlockTest.php +++ /dev/null @@ -1,29 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testAddress() - { - $this->block->setVarValues(['address' => 'Mountain View, California, United States']); - - $this->assertContains('', $this->renderFrontendNoSpace()); - } - - public function testZoomAndType() - { - $this->block->setVarValues(['address' => 'Mountain View, California, United States', 'zoom' => 1, 'maptype' => 'k']); - - $this->assertContains('', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/QuoteBlockTest.php b/modules/cms/tests/src/frontend/blocks/QuoteBlockTest.php deleted file mode 100644 index 3482cda8d..000000000 --- a/modules/cms/tests/src/frontend/blocks/QuoteBlockTest.php +++ /dev/null @@ -1,21 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testcContentRender() - { - $this->block->setVarValues(['content' => 'quote text!']); - $this->assertSame('
    quote text!
    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/SpacingBlockTest.php b/modules/cms/tests/src/frontend/blocks/SpacingBlockTest.php deleted file mode 100644 index be802187a..000000000 --- a/modules/cms/tests/src/frontend/blocks/SpacingBlockTest.php +++ /dev/null @@ -1,33 +0,0 @@ -assertSame('


    ', $this->renderFrontendNoSpace()); - } - - public function testSetSpace1() - { - $this->block->setVarValues(['spacing' => 1]); - $this->assertSame('


    ', $this->renderFrontendNoSpace()); - } - - public function testSetSpace2() - { - $this->block->setVarValues(['spacing' => 2]); - $this->assertSame('



    ', $this->renderFrontendNoSpace()); - } - - public function testSetSpace3() - { - $this->block->setVarValues(['spacing' => 3]); - $this->assertSame('




    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/TableBlockTest.php b/modules/cms/tests/src/frontend/blocks/TableBlockTest.php deleted file mode 100644 index 86365ae13..000000000 --- a/modules/cms/tests/src/frontend/blocks/TableBlockTest.php +++ /dev/null @@ -1,63 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testTableData() - { - $this->block->setVarValues(['table' => [[1,2,3], ['a', 'b', 'c']]]); - $this->assertSame('
    123
    abc
    ', $this->renderFrontendNoSpace()); - } - - public function testTableDataWithHeader() - { - $this->block->setVarValues(['table' => [[1,2,3], ['a', 'b', 'c']]]); - $this->block->setCfgValues(['header' => 1]); - $this->assertSame('
    123
    abc
    ', $this->renderFrontendNoSpace()); - } - - public function testTableDataWithMarkdown() - { - $this->block->setVarValues(['table' => [[1,2,3], ['*a*', 'b', 'c']]]); - $this->block->setCfgValues(['parseMarkdown' => 1]); - $this->assertSame('

    1

    2

    3

    a

    b

    c

    ', $this->renderFrontendNoSpace()); - } - - public function testWithAllOptions() - { - $this->block->setVarValues(['table' => [[1,2,3], ['*a*', 'b', 'c']]]); - $this->block->setCfgValues([ - 'divCssClass' => 'foo-bar', - 'equaldistance' => 1, - 'border' => 1, - 'stripe' => 1, - 'header' => 1, - ]); - $this->assertSame('
    123
    *a*bc
    ', $this->renderFrontendNoSpace()); - } - - public function testNewlineInCellMarkdown() - { - $this->block->setVarValues(['table' => [['foo -bar']]]); - $this->block->setCfgValues(['parseMarkdown' => 1]); - $this->assertContains('foo
    bar', $this->renderFrontendNoSpace()); - } - - public function testNewlineInCell() - { - $this->block->setVarValues(['table' => [['foo -bar']]]); - $this->assertContains('foo
    bar', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/TextBlockTest.php b/modules/cms/tests/src/frontend/blocks/TextBlockTest.php deleted file mode 100644 index 3042284ce..000000000 --- a/modules/cms/tests/src/frontend/blocks/TextBlockTest.php +++ /dev/null @@ -1,62 +0,0 @@ -assertSame('

    ', $this->renderFrontendNoSpace()); - } - - public function testText() - { - $this->block->setVarValues(['content' => 'text']); - $this->assertContains('

    text

    ', $this->renderFrontend()); - } - - public function testNl2br() - { - $this->block->setVarValues(['content' => 'text -test']); - $this->assertContains('

    text
    -test

    ', $this->renderFrontend()); - } - - public function testNoMarkdownButMarkup() - { - $this->block->setVarValues(['content' => '##text', 'textType' => 0]); - $this->assertContains('

    ##text

    ', $this->renderFrontend()); - } - - public function testMarkdownRender() - { - $this->block->setVarValues(['content' => '##text', 'textType' => 1]); - $this->assertContains('

    text

    ', $this->renderFrontendNoSpace()); - } - - public function testCfgValue() - { - $this->block->setVarValues(['content' => 'text']); - $this->block->setCfgValues(['cssClass' => 'test']); - $this->assertContains('

    text

    ', $this->renderFrontend()); - } - - public function testCfgWithMarkdown() - { - $this->block->setVarValues(['content' => '##text', 'textType' => 0]); - $this->block->setCfgValues(['cssClass' => 'test']); - $this->assertContains('

    ##text

    ', $this->renderFrontend()); - } - - public function testCfgWithMarkdownAndClass() - { - $this->block->setVarValues(['content' => '##text', 'textType' => 1]); - $this->block->setCfgValues(['cssClass' => 'test']); - $this->assertContains('

    text

    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/TitleBlockTest.php b/modules/cms/tests/src/frontend/blocks/TitleBlockTest.php deleted file mode 100644 index 5ecc689d4..000000000 --- a/modules/cms/tests/src/frontend/blocks/TitleBlockTest.php +++ /dev/null @@ -1,36 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testContent() - { - $this->block->setVarValues(['content' => 'Heading']); - - $this->assertSame('

    Heading

    ', $this->renderFrontendNoSpace()); - } - - public function testContentWithHeading() - { - $this->block->setVarValues(['content' => 'Heading', 'headingType' => 'h1']); - - $this->assertSame('

    Heading

    ', $this->renderFrontendNoSpace()); - } - - public function testCssClass() - { - $this->block->setVarValues(['content' => 'Heading', 'headingType' => 'h1']); - $this->block->setCfgValues(['cssClass' => 'foobar']); - $this->assertSame('

    Heading

    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/VideoBlockTest.php b/modules/cms/tests/src/frontend/blocks/VideoBlockTest.php deleted file mode 100644 index c200b7971..000000000 --- a/modules/cms/tests/src/frontend/blocks/VideoBlockTest.php +++ /dev/null @@ -1,63 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testYouTubeUrl() - { - $this->block->setVarValues(['url' => 'https://www.youtube.com/watch?v=sA2EdjiLSlk']); - $this->assertSame('https://www.youtube.com/embed/sA2EdjiLSlk?rel=0', $this->block->constructUrl()); - - $this->block->setVarValues(['url' => 'https://youtube.com/watch?v=sA2EdjiLSlk']); - $this->assertSame('https://www.youtube.com/embed/sA2EdjiLSlk?rel=0', $this->block->constructUrl()); - - $this->block->setVarValues(['url' => 'http://www.youtube.com/watch?v=sA2EdjiLSlk']); - $this->assertSame('https://www.youtube.com/embed/sA2EdjiLSlk?rel=0', $this->block->constructUrl()); - - $this->block->setVarValues(['url' => 'http://youtube.com/watch?v=sA2EdjiLSlk']); - $this->assertSame('https://www.youtube.com/embed/sA2EdjiLSlk?rel=0', $this->block->constructUrl()); - - - $this->block->setVarValues(['url' => 'http://youtube.com/watch?v=sA2EdjiLSlk']); - $this->block->setCfgValues(['controls' => 1]); - $this->assertSame('https://www.youtube.com/embed/sA2EdjiLSlk?rel=0&controls=0', $this->block->constructUrl()); - - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testVimeoUrl() - { - $this->block->setVarValues(['url' => 'https://vimeo.com/60735314']); - $this->assertContains('https://player.vimeo.com/video/60735314', $this->block->constructUrl()); - - $this->block->setVarValues(['url' => 'http://vimeo.com/60735314']); - $this->assertContains('https://player.vimeo.com/video/60735314', $this->block->constructUrl()); - - $this->block->setVarValues(['url' => 'http://vimeo.com/60735314']); - $this->assertContains('https://player.vimeo.com/video/60735314', $this->block->constructUrl()); - - $this->block->setVarValues(['url' => 'http://www.vimeo.com/60735314']); - $this->assertContains('https://player.vimeo.com/video/60735314', $this->block->constructUrl()); - - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } - - public function testWidthAndControls() - { - $this->block->setVarValues(['url' => 'http://youtube.com/watch?v=sA2EdjiLSlk']); - $this->block->setCfgValues(['controls' => 1, 'width' => 600]); - $this->assertSame('https://www.youtube.com/embed/sA2EdjiLSlk?rel=0&controls=0', $this->block->constructUrl()); - - $this->assertSame('
    ', $this->renderFrontendNoSpace()); - } -} diff --git a/modules/cms/tests/src/frontend/blocks/WysiwygBlockTest.php b/modules/cms/tests/src/frontend/blocks/WysiwygBlockTest.php deleted file mode 100644 index b02c1fa59..000000000 --- a/modules/cms/tests/src/frontend/blocks/WysiwygBlockTest.php +++ /dev/null @@ -1,21 +0,0 @@ -assertSame('', $this->renderFrontendNoSpace()); - } - - public function testContent() - { - $this->block->setVarValues(['content' => 'content']); - $this->assertSame('content', $this->renderFrontendNoSpace()); - } -}