Skip to content

Exercises: Testing TYPO3 extensions

Oliver Klee edited this page Jan 23, 2024 · 3 revisions

Basics

  1. Git-clone the Tea example extension.
  2. Get the unit tests to run.
  3. Get the functional tests to run.

Extending the model

  1. Add a bool Tea.featured to the model.
  2. Add it to the SQL, TCA, locallang and check in the repository that the property gets read from the DB.
  3. Add TeaRepository::findFeatured that only finds featured teas.
  4. Add a plugin and controller method for featured teas.
Clone this wiki locally