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

Update to CI v4.4.1 #393

Merged
merged 6 commits into from
Sep 9, 2023
Merged

Conversation

kenjis
Copy link
Contributor

@kenjis kenjis commented Aug 31, 2023

  • update by tatter/patch
  • update coding style
  • add <env name="app.forceGlobalSecureRequests" value="false"/> in phpunit.xml.dist

@kenjis
Copy link
Contributor Author

kenjis commented Aug 31, 2023

Why does the test fail? It passes on my local.

There was 1 failure:

1) BasicPagesTest::testCanViewHome
Failed asserting that 307 is identical to 200.

/home/runner/work/website/website/vendor/codeigniter4/framework/system/Test/TestResponse.php:149
/home/runner/work/website/website/tests/feature/BasicPagesTest.php:19

https://github.com/codeigniter4projects/website/actions/runs/6033515315/job/16370306869?pr=393

phpunit.xml.dist Outdated
@@ -74,6 +74,8 @@

<php>
<env name="XDEBUG_MODE" value="coverage"/>
<env name="app.forceGlobalSecureRequests" value="false"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code makes the tests pass.
So why did the tests pass without this code in the past?

Copy link
Contributor Author

@kenjis kenjis Sep 2, 2023

Choose a reason for hiding this comment

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

I found a bug in CI v4.4.0 FeatureTestTrait. See codeigniter4/CodeIgniter4#7890
So this addition should be removed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice sleuthing! We can proceed here with test workaround or wait for 4.4.1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dropped the commit.

@kenjis
Copy link
Contributor Author

kenjis commented Sep 1, 2023

Rebased to resolve conflict.

 Conflicts:
	Config/ForeignCharacters.php
	app/Config/Autoload.php
	app/Config/Modules.php
@kenjis kenjis changed the title Update to CI v4.4.0 Update to CI v4.4.1 Sep 5, 2023
@kenjis kenjis marked this pull request as ready for review September 5, 2023 01:49
@kenjis
Copy link
Contributor Author

kenjis commented Sep 5, 2023

Updated to v4.4.1.

@MGatner
Copy link
Collaborator

MGatner commented Sep 9, 2023

Still good!

@kenjis kenjis merged commit ed010b2 into codeigniter4projects:develop Sep 9, 2023
15 checks passed
@kenjis kenjis deleted the update-ci440 branch September 9, 2023 23:25
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.

4 participants