From 822bc5561e10a9755c919cada1468afa85f2ae00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Fri, 11 Feb 2022 21:11:30 +0100 Subject: [PATCH] [TASK] Drop TeaController functional test (#379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Łukasz Uznański --- .../Controller/Fixtures/Database/pages.xml | 57 ------------------ .../Fixtures/Frontend/Basic.typoscript | 60 ------------------- .../Fixtures/Frontend/Template.html | 1 - .../Controller/TeaControllerTest.php | 51 ---------------- 4 files changed, 169 deletions(-) delete mode 100644 Tests/Functional/Controller/Fixtures/Database/pages.xml delete mode 100644 Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript delete mode 100644 Tests/Functional/Controller/Fixtures/Frontend/Template.html delete mode 100644 Tests/Functional/Controller/TeaControllerTest.php diff --git a/Tests/Functional/Controller/Fixtures/Database/pages.xml b/Tests/Functional/Controller/Fixtures/Database/pages.xml deleted file mode 100644 index c0b3668..0000000 --- a/Tests/Functional/Controller/Fixtures/Database/pages.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - 1 - 0 - Tea list - 1 - 15 - - - 1 - 1 - list - tea_tea - - - - - - - Tea->index - - - - - - ]]> - - - 2 - 1 - Tea single view - 1 - 15 - - - 2 - 2 - list - tea_tea - - - - - - - Tea->show - - - - - - ]]> - - diff --git a/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript b/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript deleted file mode 100644 index 8457ad3..0000000 --- a/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript +++ /dev/null @@ -1,60 +0,0 @@ -lib.dynamicContent = COA -lib.dynamicContent { - 10 = LOAD_REGISTER - 10.colPos.cObject = TEXT - 10.colPos.cObject { - field = colPos - ifEmpty.cObject = TEXT - ifEmpty.cObject { - value.current = 1 - ifEmpty = 0 - } - } - - 20 = CONTENT - 20 { - table = tt_content - select { - orderBy = sorting - where = colPos={register:colPos} - where.insertData = 1 - } - } - - 90 = RESTORE_REGISTER -} - -config { - doctype = html5 - xmlprologue = none - - inlineStyle2TempFile = 0 - removeDefaultJS = 0 - compressJs = 0 - concatenateJs = 0 - compressCss = 0 - concatenateCss = 0 - - no_cache = 1 - debug = 0 - xhtml_cleaning = 0 - admPanel = 0 - disableAllHeaderCode = 1 - sendCacheHeaders = 0 - absRefPrefix = / - contentObjectExceptionHandler = 0 -} - -page = PAGE -page { - 10 = FLUIDTEMPLATE - 10 { - file = EXT:tea/Tests/Functional/Controller/Fixtures/Frontend/Template.html - } -} - -plugin.tx_tea { - settings { - singleViewPageUid = 2 - } -} diff --git a/Tests/Functional/Controller/Fixtures/Frontend/Template.html b/Tests/Functional/Controller/Fixtures/Frontend/Template.html deleted file mode 100644 index 10992ca..0000000 --- a/Tests/Functional/Controller/Fixtures/Frontend/Template.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Tests/Functional/Controller/TeaControllerTest.php b/Tests/Functional/Controller/TeaControllerTest.php deleted file mode 100644 index f1f930f..0000000 --- a/Tests/Functional/Controller/TeaControllerTest.php +++ /dev/null @@ -1,51 +0,0 @@ -importDataSet(__DIR__ . '/Fixtures/Database/pages.xml'); - $this->importDataSet(__DIR__ . '/../Domain/Repository/Fixtures/Product/Tea.xml'); - - $this->setUpFrontendRootPage( - 1, - [ - 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript', - 'EXT:tea/Configuration/TypoScript/setup.typoscript', - 'EXT:tea/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript', - ] - ); - } - - /** - * @test - */ - public function indexActionRendersTeaTitle(): void - { - $responseContent = $this->getFrontendResponse(1)->getContent(); - - $teaTitle = 'Earl Grey'; - self::assertStringContainsString($teaTitle, $responseContent); - } -}