r3h6/typo3-browserkit-testing

BrowserKit testing for TYPO3

0.4.4-beta 2023-12-08 16:33 UTC

README

Brings Symfony's BrowserKit Component to TYPO3 Testing Framework.

Example

class MyTestCase extends BrowserKitTestCase
{
    public function testExample()
    {
        $client = self::getClient($this);
        $crawler = $client->request('GET', '/');
        self::assertSelectorExists('.example');
    }
}

See also tests/Functional/DomCrawlerAssertionsTest.php

Assertions

You can find details on Symfony's Testing Documentation.

❌ Response Assertions
❌ Request Assertions
❌ Browser Assertions
✅ Crawler Assertions
✅ Mailer Assertions

Known problems

  • File upload not (yet) implemented