Skip to content

Commit 7635356

Browse files
Added info from the 'Codeception for Symfony' page (#98)
1 parent 6be648a commit 7635356

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@
5656
use function sprintf;
5757

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

0 commit comments

Comments
 (0)