-
Notifications
You must be signed in to change notification settings - Fork 26
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
[FEATURE] Add command controller to create test data #1297
Conversation
Pull Request Test Coverage Report for Build 10167965078Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
I know this is WIP, but I wanted to provide an early feedback on this. Basically, I would recommend to avoid using
albeit eventually not having all in place right now. Thus I highly recommend to switch to |
60272f9
to
f28c1a3
Compare
We are aware to the usage of DataHandler or not. Daniel means that Command Controller should be an simple example to work with database actions. Maybe later we can extend that existing command or create a second command controller that shows an advanced example to work with the DataHandler. |
bad530a
to
c3821cd
Compare
a2f9011
to
9902677
Compare
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.
Currently, the functional tests are failing. Also, we currently have some style warnings and PHPStan warnings which we'll need to fix first.
6327a94
to
73b8069
Compare
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.
Currently, some tests are red. Could you please fix these and also rename the Composer script key as requested in an earlier review? Thanks! 🙏
a7101db
to
055a2f0
Compare
Hi, We've implemented a policy to close pull requests that have been inactive for over six months. If you're still interested in contributing and would like to continue working on this pull request, we're more than happy to keep it open. Please take a moment to review your pull request and let us know if you'd like to proceed with it. If we don't receive a response within the next 30 days, we'll assume that you no longer wish to pursue it, and we'll proceed with closing the pull request. Feel free to reach out if you have any questions or need further assistance. |
Oh, shit. And yes, I still try to make this PR ready to review/merge ;-). |
055a2f0
to
3c9a5b7
Compare
Pull Request Test Coverage Report for Build 12447292792Details
💛 - Coveralls |
aa090fc
to
4662572
Compare
Related: #11120
Co-authored-by: Oliver Klee <[email protected]>
Co-authored-by: Oliver Klee <[email protected]>
SQLite does reset the UID autoincrement during deletion. That way the assertions do not match. We now use a different set up and remove the uids from assertions. That way we still ensure that the imported data is removed and new data is imported. We do not need to care about UID.
Related #1120
Related #1120
In php 7.4 error occured: `Cannot unpack array with string keys` Related #1120
functional test are failing all with that assert Related: #1120
With the usage of an integer in functional test for the command we get rid of the issue with asert is int or cast mixed variable to int. Test are running fine locally. The page id should be just an integer and nobody will be set that in '' right? Related: #1120
4662572
to
c7f3aff
Compare
Simple command to add test data for tea model with a console command. It's just the first try and should be extended by more data, translations, etc.
Resolves: #1120