---
title: "Testing Examples"
manual: "CKEditor Image Support"
version: "13.11"
permalink: "https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:examples-testing@13.11"
source: "Examples/Testing.rst"
rendered: "2026-11-23T12:52:55+00:00"
---

# Testing Examples {#examples-testing}

Examples for writing functional and unit tests for the CKEditor Image Support extension.

**Table of Contents**

-   [Test Suites in the Extension](https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:test-suites-in-the-extension@13.11)
-   [Run Tests](https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:run-tests@13.11)
-   [Related Documentation](https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:related-documentation@13.11)

## Test Suites in the Extension {#test-suites-in-the-extension}

The extension's own tests are the reference for writing tests against it:

-   `Tests/Functional/Controller/SelectImageControllerTest.php` \- image dialog controller
-   `Tests/Functional/Controller/ImageRenderingAdapterTypoScriptTest.php` \- frontend rendering via TypoScript
-   `Tests/Unit/Database/RteImagesDbHookTest.php` \- DataHandler hook

They use the TYPO3 testing framework with PHPUnit attributes (`#[Test]`).
Functional tests that need records load CSV fixtures with `importCSVDataSet()`.

## Run Tests {#run-tests}

### Execute Test Suites {#execute-test-suites}

```bash
# Unit tests (Build/phpunit/UnitTests.xml)
composer ci:test:php:unit

# Functional tests (Build/phpunit/FunctionalTests.xml, needs typo3DatabaseDriver=pdo_sqlite)
composer ci:test:php:functional
```

**Result**: Automated testing suite ✅

## Related Documentation {#related-documentation}

-   [Controllers API](https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:api-controllers@13.11) \- Controller API documentation
-   [Data Handling API](https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:api-datahandling@13.11) \- Data handling API
-   [Custom Extensions](https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:examples-custom-extensions@13.11) \- Custom extensions
-   [Troubleshooting & Support](https://docs.typo3.org/permalink/netresearch/rte-ckeditor-image:troubleshooting-index@13.11) \- Common issues
