Skip to content

Add extra line at the eof to solve phpcs error, DEV-1895 - #21

Merged
sprankhub merged 2 commits into
masterfrom
DEV-1895-solve-phpcs-eroors
Aug 20, 2026
Merged

sprankhub merged 2 commits into
masterfrom
DEV-1895-solve-phpcs-eroors

Conversation

@kapilpandya22

Copy link
Copy Markdown
Member

No description provided.

kapilpandya22 and others added 2 commits August 20, 2026 11:31
Magento 2.4.9 changed Store::isUseStoreInUrl() to read web/url/use_store
via ScopeConfigInterface::isSetFlag(), which resolves the default scope
only, instead of Store::getConfig(), which resolves the store scope.

The tests set the flag in the store scope, so on 2.4.9 it was ignored and
testStoreCodeIsShownInNonDefaultStoreUrl failed with
"Failed asserting that 'http://localhost/index.php/' contains 'test'".

Replace the manual ReinitableConfigInterface::setValue() calls with
@magentoConfigFixture annotations that set both the default and the store
scope, so the tests pass on every supported Magento version and the values
are restored automatically after each test.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sprankhub
sprankhub merged commit 8af2ed9 into master Aug 20, 2026
26 checks passed
@sprankhub
sprankhub deleted the DEV-1895-solve-phpcs-eroors branch August 20, 2026 13:50
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.

2 participants