mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 11:36:14 +01:00
[TASK] Drop TeaController functional test (#379)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.pl>
This commit is contained in:
parent
cc62f32a36
commit
822bc5561e
4 changed files with 0 additions and 169 deletions
|
@ -1,57 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dataset>
|
||||
<pages>
|
||||
<uid>1</uid>
|
||||
<pid>0</pid>
|
||||
<title>Tea list</title>
|
||||
<doktype>1</doktype>
|
||||
<perms_everybody>15</perms_everybody>
|
||||
</pages>
|
||||
<tt_content>
|
||||
<uid>1</uid>
|
||||
<pid>1</pid>
|
||||
<CType>list</CType>
|
||||
<list_type>tea_tea</list_type>
|
||||
<pi_flexform><![CDATA[
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<T3FlexForms>
|
||||
<data>
|
||||
<sheet index="general">
|
||||
<language index="lDEF">
|
||||
<field index="switchableControllerActions">
|
||||
<value index="vDEF">Tea->index</value>
|
||||
</field>
|
||||
</language>
|
||||
</sheet>
|
||||
</data>
|
||||
</T3FlexForms>
|
||||
]]></pi_flexform>
|
||||
</tt_content>
|
||||
<pages>
|
||||
<uid>2</uid>
|
||||
<pid>1</pid>
|
||||
<title>Tea single view</title>
|
||||
<doktype>1</doktype>
|
||||
<perms_everybody>15</perms_everybody>
|
||||
</pages>
|
||||
<tt_content>
|
||||
<uid>2</uid>
|
||||
<pid>2</pid>
|
||||
<CType>list</CType>
|
||||
<list_type>tea_tea</list_type>
|
||||
<pi_flexform><![CDATA[
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<T3FlexForms>
|
||||
<data>
|
||||
<sheet index="general">
|
||||
<language index="lDEF">
|
||||
<field index="switchableControllerActions">
|
||||
<value index="vDEF">Tea->show</value>
|
||||
</field>
|
||||
</language>
|
||||
</sheet>
|
||||
</data>
|
||||
</T3FlexForms>
|
||||
]]></pi_flexform>
|
||||
</tt_content>
|
||||
</dataset>
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
<f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '0'}"/>
|
|
@ -1,51 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace TTN\Tea\Tests\Functional\Controller;
|
||||
|
||||
use Nimut\TestingFramework\TestCase\FunctionalTestCase;
|
||||
|
||||
/**
|
||||
* @covers \TTN\Tea\Controller\TeaController
|
||||
*/
|
||||
class TeaControllerTest extends FunctionalTestCase
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
protected $testExtensionsToLoad = ['typo3conf/ext/tea'];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
protected $coreExtensionsToLoad = ['fluid_styled_content'];
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue