-
Notifications
You must be signed in to change notification settings - Fork 25
Renaming Doctrine2 to Doctrine #184
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
Conversation
@ThomasLandauer I think this PR should also replace "codeception/module-doctrine2" with "codeception/module-doctrine". Tests are currently failing because "codeception/module-doctrine2" is not compatible with ORMv3/DBALv4. |
Sorry, don't know what you mean. I changed just the docs. |
I mean all references to the composer package Index: composer.json
<+>UTF-8
===================================================================
diff --git a/composer.json b/composer.json
--- a/composer.json (revision be24b2b64759e5b4dd83ca091ecfe49c26cecc5c)
+++ b/composer.json (date 1708610763372)
@@ -25,7 +25,7 @@
},
"require-dev": {
"codeception/module-asserts": "^3.0",
- "codeception/module-doctrine2": "^3.0",
+ "codeception/module-doctrine": "^3.0",
"doctrine/orm": "^2.10",
"symfony/browser-kit": "^5.4 | ^6.4 | ^7.0",
"symfony/cache": "^5.4 | ^6.4 | ^7.0",
Index: .github/workflows/main.yml
<+>UTF-8
===================================================================
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
--- a/.github/workflows/main.yml (revision be24b2b64759e5b4dd83ca091ecfe49c26cecc5c)
+++ b/.github/workflows/main.yml (date 1708610763384)
@@ -76,7 +76,7 @@
composer require symfony/browser-kit=${{ matrix.symfony }} --no-update
composer require vlucas/phpdotenv --no-update
composer require codeception/module-asserts="3.*" --no-update
- composer require codeception/module-doctrine2="3.*" --no-update
+ composer require codeception/module-doctrine="3.*" --no-update
composer update --prefer-dist --no-progress --no-dev
- name: Validate composer.json and composer.lock
@@ -90,7 +90,7 @@
- name: Install Symfony Sample
run: |
- composer remove codeception/codeception codeception/module-asserts codeception/module-doctrine2 codeception/lib-innerbrowser codeception/module-symfony --dev --no-update
+ composer remove codeception/codeception codeception/module-asserts codeception/module-doctrine codeception/lib-innerbrowser codeception/module-symfony --dev --no-update
composer update --no-progress
working-directory: framework-tests
By replacing them with |
OK, thanks, there you go :-) |
Great, thank you! Tests still fail but with a different error message:
Sounds like this error should be fixed with Codeception/Codeception#6741 which adjusts the module name in |
@W0rma that array in ModuleContainer.php is only used for printing install suggestion in error message. |
@Naktibalda you are right. I just corrected it in the 5.4 branch, |
@Naktibalda I have updated the 3 active branches of the module test project and the tests are passing there. However, in the module CI there are errors, apparently related to PHPUnit versions. Perhaps changes need to be made to these lines? module-symfony/.github/workflows/main.yml Lines 64 to 66 in be24b2b
module-symfony/.github/workflows/main.yml Lines 86 to 88 in be24b2b
|
Co-authored-by: Dieter Beck <beck.worma@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed the tests and this PR is ready to be merged.
No description provided.