Skip to content

oliverklee-de/TYPO3-testing-distribution

Repository files navigation

TYPO3 CMS distribution for testing my extensions

This is a TYPO3 distribution which I use to manually test my extensions:

Usage

This distribution uses ddev.

Initializing the project

ddev start
ddev composer install
ddev install-typo3

Database dump and import

There are two commands available for dumping the database and for importing the dump to and from the file dump.sql:

ddev db-dump
ddev db-import

The dump includes (and hence overwrite on import) FE users and FE user groups, but not BE users or BE user groups. (So it is safe to add BE users and then run the import.)

Developing and testing extensions

To test a local development copies of extension in this distribution:

  1. Copy the file .ddev/docker-compose.packages.yaml.template to .ddev/docker-compose.packages.yaml.
  2. Modify the left-handside paths to match the directories of the extensions on your host machine.
  3. Add other extensions as needed.

Configuring PHPUnit

The DDEV documentation provides very good step-by-step instructions for the Docker setup in PhpStorm.

After that, you need to configure the PhpStorm templates for PHPUnit tests:

  • Configuration file: config/UnitTests.xml

Also, config/UnitTests.xml is the configuration file for unit tests, while config/FunctionalTests.xml is the corresponding file for functional tests.

Relevant URLs and launch options

Credentials

Backend admin: admin / Password1!
Install tool password: Password1!

Frontend users:

  • attendee / attendee
  • editor / editor
  • manager / manager
  • admin / password (with all three of the above roles combined)

About

TYPO3 installation for testing my extensions

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5