Open stollr opened 1 month ago
Hi @stollr. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Btw. the usage of the config-global.php
for this case is documented here.
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @stollr,
Thanks for the report and collaboration!
We have tried to reproduce the issue in latest 2.4-develop branch, and we are getting the below error:
Are you talking about the same issue in the main description?
Thanks
@engcom-Hotel Yes, this is the same issue.
Thanks @stollr, for the reply!
We are confirming the issue for further processing. Additionally, I'd like to mention that community members are welcome to pick up issues and submit a fix as a Community PR
in this repository.
Thanks
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-13237 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Preconditions and environment
In
dev/tests/integration/phpunit.xml
there is the constantTESTS_GLOBAL_CONFIG_FILE
defined, which allows to define a php file, which can be used to provide some config values, which are stored in theMagento\TestFramework\App\Config
.This file is correctly loaded during initialization of the test application.
But before any test is started the
startTest
event is fired, which callsMagento\TestFramework\Isolation\AppConfig::startTest()
where the config is resetted and thus the config entries of theTESTS_GLOBAL_CONFIG_FILE
get lost.I know about the @magentoConfigFixture annotation. But I need to configure environment dependant credentials and I don't want to hardcode them in the test files.
Magento version: 2.4.7-p2 PHP version: 8.3
Steps to reproduce
dev/tests/integration/etc/config-global.php.dist
todev/tests/integration/etc/config-global.php
'test/test/test' => true,
use Magento\Catalog\Model\Product; use Magento\Catalog\Model\Product\Type; use Magento\Framework\ObjectManagerInterface; use Magento\TestFramework\Helper\Bootstrap; use PHPUnit\Framework\TestCase;
class TokenManagerTest extends TestCase { private ObjectManagerInterface $objectManager;
}