r3h6 / typo3-browserkit-testing
BrowserKit testing for TYPO3
Installs: 5 681
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- symfony/browser-kit: ^5.4 || ^6.0
- symfony/css-selector: ^5.4 || ^6.0
- typo3/testing-framework: ^7.0
Requires (Dev)
- blastcloud/guzzler: ^2.0
- saschaegerer/phpstan-typo3: ^1.1
- typo3/cms-felogin: ^12.4 || ^11.5
- typo3/cms-fluid-styled-content: ^12.4 || ^11.5
- typo3/cms-form: ^12.4 || ^11.5
- typo3/coding-standards: ^0.5.2
Suggests
- blastcloud/guzzler: Supercharge your app with a testing library specifically for Guzzle
This package is auto-updated.
Last update: 2024-12-08 18:30:09 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