codeception/module-symfony
Symfony module for Codeception that integrates the framework’s kernel, container, and HTTP client for functional/acceptance testing. Boot the app, make requests, assert responses, and access services to test controllers and app behavior with minimal setup.
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.9.0...3.9.1
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.8.0...3.9.0
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.7.1...3.8.0
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.7.0...3.7.1
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.6.0...3.7.0
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.5.1...3.6.0
Support Symfony 7.2 (https://github.com/Codeception/module-symfony/pull/203). Added Symfony Translation assertions (https://github.com/Codeception/module-symfony/pull/205):
dontSeeFallbackTranslationsdontSeeMissingTranslationsgrabDefinedTranslationsCountseeAllTranslationsDefinedseeDefaultLocaleIsseeFallbackLocalesAreseeFallbackTranslationsCountLessThanseeMissingTranslationsCountLessThanAdded Symfony Logger assertion (dontSeeDeprecations) (https://github.com/Codeception/module-symfony/pull/206).
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.5.0...3.5.1
🆕 New Assertions
you can now use all Symfony assertions directly in Codeception with the $I-> syntax.
assertBrowserCookieValueSame
assertBrowserHasCookie
assertBrowserNotHasCookie
assertRequestAttributeValueSame
assertResponseCookieValueSame
assertResponseFormatSame
assertResponseHasCookie
assertResponseHasHeader
assertResponseHeaderNotSame
assertResponseHeaderSame
assertResponseIsSuccessful
assertResponseIsUnprocessable
assertResponseNotHasCookie
assertResponseNotHasHeader
assertResponseRedirects
assertResponseStatusCodeSame
assertCheckboxChecked
assertCheckboxNotChecked
assertInputValueNotSame
assertInputValueSame
assertPageTitleContains
assertPageTitleSame
assertSelectorExists
assertSelectorNotExists
assertSelectorTextContains
assertSelectorTextNotContains
assertSelectorTextSame
assertHttpClientRequest
assertHttpClientRequestCount
assertNotHttpClientRequest
assertEmailCount
assertEmailIsQueued
assertEmailIsNotQueued
assertQueuedEmailCount
assertFormValue
assertNoFormValue
🔧 Other Changes
cache_router documentation enhancement by @rtwent in https://github.com/Codeception/module-symfony/pull/195🚀 Enjoy the new features and keep building better tests!
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.4.0...3.5.0
tests/bootstrap.php if exists, to load all necessary .env files in https://github.com/Codeception/module-symfony/pull/190amLoggedInWithToken method by @codedge in https://github.com/Codeception/module-symfony/pull/182grabParameter: Adding info about bind by @ThomasLandauer in https://github.com/Codeception/module-symfony/pull/193Full Changelog: https://github.com/Codeception/module-symfony/compare/3.3.2...3.4.0
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.3.1...3.3.2
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.3.0...3.3.1
grabSecurityService for compatibility with Symfony 7.0 by @W0rma in https://github.com/Codeception/module-symfony/pull/178Full Changelog: https://github.com/Codeception/module-symfony/compare/3.2.0...3.3.0
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.1.1...3.2.0
Full Changelog: https://github.com/Codeception/module-symfony/compare/3.0.0...3.1.0
By @TavoNiievez:
By @ThomasLandauer:
public services ( https://github.com/Codeception/module-symfony/pull/145 )Symfony.php -> trait ( https://github.com/Codeception/module-symfony/pull/143 )Full Changelog: https://github.com/Codeception/module-symfony/compare/2.0.5...2.1.0
Added assertions for Symfony Mime component (#139):
assertEmailAddressContainsassertEmailAttachmentCountassertEmailHasHeaderassertEmailHeaderNotSameassertEmailHeaderSameassertEmailHtmlBodyContainsassertEmailHtmlBodyNotContainsassertEmailNotHasHeaderassertEmailTextBodyContainsassertEmailTextBodyNotContainsNew method: $I->goToLogoutPath();
$I->logout(); is now an alias for $I->logoutProgrammatically();
Added changelog link to readme.md (#136) by @Arhell
$I->seeRequestTimeIsLessThan() (#132).Logical changes by @mrsombre :
Documentation changes by @ThomasLandauer :
submitSymfonyForm(): Mentioning name attribute (#128)Minor changes in documentation by @ThomasLandauer :
stopFollowingRedirects() restriction for email (#118)"[@example](https://github.com/example).com" as domain in documentation (#124)seeCurrentTemplateIs, seeRenderedTemplate and dontSeeRenderedTemplate.grabSentEmails and grabLastSentEmail functions were added.SeeOrphanEvent and dontSeeOrphanEvent assertions.$url parameter is now optional in the seePageIsAvailable assertion.Symfony 3.4 support removed. Symfony 4.4 or higher is now required.Swift Mailer was dropped in favor of Symfony Mailer; the mailer configuration parameter was removed.If you are already using
Symfony 4.4or higher it should not be necessary to make changes to your tests to update!
New methods by @TavoNiievez:
Remembered authentication methods now also verify the Cookie generated (#81)
Fixed time metric when running test with --debug (#77)
If you're interested in contributing to this module and didn't know where to start, a contribution guide is now available, thanks to @ThomasLandauer and @TavoNiievez (#79).
BC: Removed support for PHP 7.1 and PHP 7.2.
Minor changes: (#65) (#78)
New method by @ThomasLandauer:
New methods by @TavoNiievez:
Now you can run test for all the methods of this module in https://github.com/Codeception/symfony-module-tests .
BC: Remove PHP 7.0 support (#69), code standards updated to PHP 7.1+ (#75)
BC: Removed parameter flags in seeAuthentication, dontSeeAuthentication and persistService, use seeRememberedAuthentication, dontSeeRememberedAuthentication and persistPermanentService instead.
Minor logical change in #74.
Minor non-logical changes in #57 and #62.
New methods by @TavoNiievez:
Minor logic fixes (#51), (#47), (#44), (#41) and (#56).
New methods by @TavoNiievez:
Supports vlucas/phpdotenv v5 (#28)
Minor logic fixes (#35), (#36), (#37) and (#38)
Improved documentation of the 'Parts' feature by @ThomasLandauer (#40)
BC: Removed support for php 5.6 and Symfony 2.8 (#39)
How can I help you explore Laravel packages today?