Skip to content
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

Added Symfony Logger assertion (dontSeeDeprecations) #206

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

TavoNiievez
Copy link
Member

@TavoNiievez TavoNiievez commented Feb 17, 2025

       $I->amOnPage('/home');
       $I->dontSeeDeprecations();
 Step  Don't see deprecations
 Fail  Found 2 deprecation messages in the log:
  - Since doctrine/doctrine-bundle 2.12: The default value of "doctrine.orm.controller_resolver.auto_mapping" will be changed from `true` to `false`...
  - Since doctrine/doctrine-bundle 2.13: Enabling the controller resolver automapping feature has been deprecated....
Failed asserting that an array is empty.

@TavoNiievez
Copy link
Member Author

cc. @xEdelweiss @ThomasLandauer

trait LoggerAssertionsTrait
{
/**
* Asserts that there are no deprecation messages in the log.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asserts that there are no deprecation messages in Symfony's log.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thank you :)

@TavoNiievez TavoNiievez merged commit 12fdf09 into Codeception:main Feb 20, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants