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

[TASK] Switch to the core testing framework #361

Merged
merged 8 commits into from
Feb 20, 2022

Conversation

oliverklee
Copy link
Contributor

@oliverklee oliverklee commented Dec 31, 2021

The TYPO3 core testing framework has more person-power for maintenance
behind it compared to the nimut testing framework. So we should use that.

@oliverklee oliverklee added this to the 1.0.1 milestone Dec 31, 2021
@oliverklee oliverklee self-assigned this Dec 31, 2021
@oliverklee oliverklee force-pushed the task/core-testing-framework branch 3 times, most recently from 063b666 to 96e03a0 Compare December 31, 2021 14:16
@oliverklee oliverklee force-pushed the task/core-testing-framework branch 3 times, most recently from 3970f6b to 01eeab2 Compare January 13, 2022 13:57
@DanielSiepmann
Copy link
Contributor

I don't know current state, but https://github.com/sabbelasichon/typo3-rector/blob/main/src/Set/Extension/NimutTestingFrameworkSetList.php might be helpful. We used the set during a project update from V8 to V10 to also switch the framework, and it did the job.

@oliverklee
Copy link
Contributor Author

@DanielSiepmann Thanks!

@lukaszuznanski
Copy link
Contributor

I got totally different errors locally in functional tests.

@oliverklee
Copy link
Contributor Author

This PR needs rebasing.

@lukaszuznanski lukaszuznanski force-pushed the task/core-testing-framework branch 3 times, most recently from e6ab9a8 to 01b414d Compare February 15, 2022 14:49
$connection = $this->getConnectionPool()
->getConnectionForTable('tx_tea_domain_model_product_tea');
$databaseRow = $connection->select(['*'], 'tx_tea_domain_model_product_tea', ['uid' => $model->getUid()])
->fetchAssociative();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be compatible with TYPO3 10LTS with lowest dependencies, we need to use the deprecated method here (maybe with a comment).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the requirements in the composer.json of typo3/cms-core:

  • V10: "doctrine/dbal": "~2.10.0 || ~2.11.2 || ~2.13.1",
  • V11: "doctrine/dbal": "^2.13.5",
  • main: "doctrine/dbal": "^3.2",

oliverklee and others added 6 commits February 19, 2022 16:01
`fetchAssociative()` is not available yet in doctrine/dbal 2.10
(which is thge lowest requirement for TYPO3 V10).
Thus, we can avoid using a function that was removed in newer versions
of DBAL.
@oliverklee oliverklee marked this pull request as ready for review February 19, 2022 15:14
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.

None yet

3 participants