mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 17:36:12 +01:00
51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<?php
|
|
declare(strict_types = 1);
|
|
namespace OliverKlee\Tea\Tests\Functional\Controller;
|
|
|
|
use Nimut\TestingFramework\TestCase\FunctionalTestCase;
|
|
|
|
/**
|
|
* Test case.
|
|
*
|
|
* @author Oliver Klee <typo3-coding@oliverklee.de>
|
|
*/
|
|
class TeaControllerTest extends FunctionalTestCase
|
|
{
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected $testExtensionsToLoad = ['typo3conf/ext/tea'];
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected $coreExtensionsToLoad = ['fluid_styled_content'];
|
|
|
|
protected function setUp()
|
|
{
|
|
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.txt',
|
|
'EXT:tea/Configuration/TypoScript/setup.txt',
|
|
'EXT:tea/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript',
|
|
]
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function indexActionRendersTeaTitle()
|
|
{
|
|
$responseContent = $this->getFrontendResponse(1)->getContent();
|
|
|
|
$teaTitle = 'Earl Grey';
|
|
$this->assertContains($teaTitle, $responseContent);
|
|
}
|
|
}
|