- Issue created by @Liam Morland
- πΊπΈUnited States phenaproxima Massachusetts
They don't have to pass. They just have to run at all, rather than crapping out due to interface mismatches or syntax errors. Getting the tests passing can be done in other issues. I'd be fine merging this if they run but fail -- baby steps.
- π¨π¦Canada joseph.olstad
joseph.olstad β made their first commit to this issueβs fork.
- π¨π¦Canada joseph.olstad
phpcs fixes are just noise that will break EVERYONES patches. I'd suggest avoid doing useless changes like this:
/** * */
- πΊπΈUnited States phenaproxima Massachusetts
There are a lot of PHPCS fixes in here. That directly goes against what I'd like to do in this issue. Let the coding standards fixes stay here for now and fix them in a different issue. Please revert all that. I'd only like to have the bare minimum needed to get the tests to run.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Yes, some phpcs changes don't do much, but getting them all done at once gets the pain over with and going forward, everything follows the standards.
I don't think commit 41af061 is correct. The parent method doesn't return anything. It should probably call it but not return.
- πΊπΈUnited States phenaproxima Massachusetts
I know they're a pain, but fix them -- and ONLY them -- in another issue. I'll even commit that before this one, if it will help you.
- πΊπΈUnited States phenaproxima Massachusetts
Okay, then please
git reset --hard 41af0616
and force push so I can review. - π¨π¦Canada joseph.olstad
Reverted the phpcs changes
No need to rebase, keep all the commit history in this merge request. I believe it's possible to squash all the commits upon merge.
- π¨π¦Canada joseph.olstad
ok so we've got 14 fails here and my merge request in the upgrade branch has only 7 failures.
- πΊπΈUnited States phenaproxima Massachusetts
Thanks for the noise removal. Couple of questions.
- π¨π¦Canada joseph.olstad
Tests are basically running with minimal changes.
14 Failures.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
My concern with commit 41af061 is that
parent::save()
isBlockContentForm::save()
, which does not return anything, so it seems pointless to return that value which will always be null. - π¨π¦Canada joseph.olstad
@liam morland,
- BlockContentForm extends ContentEntityForm
- ContentEntityForm extends EntityForm
- EntityForm extends FormBase and implements EntityFormInterface
- EntityFormInterface save returns int.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Yes, I see that. I am observing that the code for
BlockContentForm::save()
does not contain areturn
statement. Perhaps that is a bug. - π¨π¦Canada joseph.olstad
@phenaproxima
I removed ALL of the extra changes except the single PHPStan fix for the form.
I can revert that also if you want.
There's no improvement in the tests with this, still 14 Failures but at least the tests will run.
-
phenaproxima β
committed 028a77ce on 8.x-1.x authored by
joseph.olstad β
Issue #3497914 by joseph.olstad, liam morland: Make tests run on GitLab...
-
phenaproxima β
committed 028a77ce on 8.x-1.x authored by
joseph.olstad β
- πΊπΈUnited States phenaproxima Massachusetts
Merged into 8.x-1.x. Thanks!
Next step: let's get those PHPCS failures fixed. We can do that all at once in another issue. Onward!
Automatically closed - issue fixed for 2 weeks with no activity.