1. Go to this page and download the library: Download nimut/testing-framework library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// First import some page records
$this->importDataSet('ntf://Database/pages.xml');
// Import tt_content record that should be shown on your home page
$this->importDataSet('ntf://Database/tt_content.xml');
// Setup the page with uid 1 and Get the first section from the response
$sections = $response->getResponseSections();
$defaultSection = array_shift($sections);
// Get the section structure
$structure = $defaultSection->getStructure();
// Make assertions for the structure
$this->assertTrue(is_array($structure['pages:1']['__contents']['tt_content:1']));
// Setup the page with uid 1 and 1,
array(
'ntf://TypoScript/JsonRenderer.ts',
'EXT:example_extension/Tests/Functional/Fixtures/TypoScript/Config.ts'
)
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.