Skip to content

r3h6/typo3-browserkit-testing

Repository files navigation

TYPO3 BrowserKit Testing

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