Download the PHP package nimut/testing-framework without Composer
On this page you can find all versions of the php package nimut/testing-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nimut/testing-framework
More information about nimut/testing-framework
Files in nimut/testing-framework
Download nimut/testing-framework
More information about nimut/testing-framework
Files in nimut/testing-framework
Vendor nimut
Package testing-framework
Short Description TYPO3 testing framework that provides base classes and configuration for PHPUnit tests
License GPL-2.0-or-later
Homepage https://github.com/Nimut/testing-framework
Package testing-framework
Short Description TYPO3 testing framework that provides base classes and configuration for PHPUnit tests
License GPL-2.0-or-later
Homepage https://github.com/Nimut/testing-framework
Please rate this library. Is it a good library?
Informations about the package testing-framework
Testing Framework for TYPO3 CMS Extensions
There are no plans to support nimut/testing-framework for versions above TYPO3 v11. You are advised to switch to the typo3/testing-framework for TYPO3 v12 and above. The typo3/testing-framework has improved support for testing more than one version of the core. Further information and an introduction can be found in the official TYPO3 documentation:
ℹ️ Show docs for TYPO3 9.5 up to 11.5
[![Latest Stable Version](https://img.shields.io/packagist/v/nimut/testing-framework.svg)](https://packagist.org/packages/nimut/testing-framework) [![Build Status](https://img.shields.io/travis/Nimut/testing-framework/master.svg)](https://travis-ci.org/Nimut/testing-framework) [![StyleCI](https://styleci.io/repos/81999184/shield?branch=master)](https://styleci.io/repos/81999184) The aim of the testing framework is to provide a good way to write and run unit and functional tests for multiple versions of the TYPO3 CMS. Currently **TYPO3 CMS 9.5 up to 11.5** are tested and supported. ## Installation Use [Composer](https://getcomposer.org/) to install the testing framework. Composer will add the package as a dev requirement to your composer.json and install PHPUnit and vfsStream as its dependencies. ## Usage ### Unit Tests Inherit your test class from `\Nimut\TestingFramework\TestCase\UnitTestCase`. To execute the unit tests of your extension run #### ViewHelper For an easy way to test your Fluid ViewHelper you can inherit the test class from `\Nimut\TestingFramework\TestCase\ViewHelperBaseTestcase`. You should setup your subject class in your setUp() method of the test class: ### Functional Tests Inherit your test class from `\Nimut\TestingFramework\TestCase\FunctionalTestCase`. To execute the functional tests of your extension run ### Extension preparation You can add a script section to your `composer.json` file to symlink your extension to the proper root-dir/web-dir. ### Database abstraction To be able to test against TYPO3 CMS 8 and later, nimut/testing-framework provides an own database abstraction layer. In your FunctionalTestCase call `$this->getDatabaseConnection()` to get an instance of `\Nimut\TestingFramework\Database\DatabaseInterface`. Following database functions are built in the nimut/testing-framework database interface: - select - selectSingleRow - selectCount - insertArray - lastInsertId - updateArray - delete - getDatabaseInstance If you need own database requests you can get the proper database instance of the current TYPO3 version by using `$this->getDatabaseConnection()->getDatabaseInstance()`. You have to check weather this instance is a `\TYPO3\CMS\Core\Database\Query\QueryBuilder` (TYPO3 CMS 8 and above) or an instance of `\TYPO3\CMS\Core\Database\DatabaseConnection` (TYPO3 CMS 7). #### Database fixtures The nimut/testing-framework ships database fixtures for several TYPO3 CMS core database tables: - pages - pages_language_overlay - sys_file_storage - sys_language - tt_content To use the database fixtures you can trigger an import in your test file ### Frontend requests The nimut/testing-framework ships an own TypoScript file for supporting frontend requests out of the box. #### Structure The returned structure of a frontend request is an array with some information about your page and its children. If you need additional information about a record, you can provide additional TypoScript with the needed configuration. Content of the TypoScript file *Config.ts* ## Additional information Following links provide documentation and additional information about TYPO3 CMS extension testing - [Unit tests for dummies](https://de.slideshare.net/cpsitgmbh/unit-tests-for-dummies) - [How to write functional test](https://wiki.typo3.org/Functional_testing#How_to_write_functional_test.3F) - [Functional tests with TYPO3](https://de.slideshare.net/cpsitgmbh/functional-tests-with-typo3) - [Functional tests for dummies](https://de.slideshare.net/cpsitgmbh/functional-tests-for-dummies-65673214) Last but not least you may ask for further support in the Slack channel "[#cig-testing](https://typo3.slack.com/messages/cig-testing)".All versions of testing-framework with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2 || ^8.0
typo3/cms-backend Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-core Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-extbase Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-fluid Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-frontend Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-install Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-recordlist Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
phpunit/phpunit Version ^8.5.22 || ^9.5
mikey179/vfsstream Version ^1.6.7
typo3/cms-backend Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-core Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-extbase Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-fluid Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-frontend Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-install Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
typo3/cms-recordlist Version ^9.5.13 || ^10.4 || ^11.5.3 || dev-main
phpunit/phpunit Version ^8.5.22 || ^9.5
mikey179/vfsstream Version ^1.6.7
The package nimut/testing-framework contains the following files
Loading the files please wait ....