From 14d9f2ae0c790cefd0214439eef7fa5a39827638 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Mon, 11 Jan 2021 23:20:19 +0100 Subject: [PATCH] Dropping "Codeception for" (i.e. button "use cases") part 1: Symfony Questions: * By "Symfony Crawler" you mean "DomCrawler"? * How does this work: "Symfony Router can be cached between requests to speed up testing"? * I'm not 100% sure about the "API Tests" header, so please double-check if anything important from https://codeception.com/for/symfony#api-tests is missing at https://codeception.com/docs/10-APITesting#REST-API --- src/Codeception/Module/Symfony.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Codeception/Module/Symfony.php b/src/Codeception/Module/Symfony.php index 2f342598..1f3faa8e 100644 --- a/src/Codeception/Module/Symfony.php +++ b/src/Codeception/Module/Symfony.php @@ -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 * pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy