Skip to content

Added info from the 'Codeception for Symfony' page #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Codeception/Module/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@
use function substr_compare;

/**
* This module uses Symfony Crawler and HttpKernel to emulate requests and test response.
* This module uses [Symfony's DomCrawler](https://symfony.com/doc/current/components/dom_crawler.html)
* and [HttpKernel Component](https://symfony.com/doc/current/components/http_kernel.html) to emulate requests and test response.
*
* * Access Symfony services through the dependency injection container: [`$I->grabService(...)`](#grabService)
* * Use Doctrine to test against the database: `$I->seeInRepository(...)` - see [Doctrine Module](https://codeception.com/docs/modules/Doctrine2)
* * Assert that emails would have been sent: [`$I->seeEmailIsSent()`](#seeEmailIsSent)
* * Tests are wrapped into Doctrine transaction to speed them up.
* * Symfony Router can be cached between requests to speed up testing.
*
* ## Demo Project
*
Expand Down