magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.57k stars 9.32k forks source link

[Issue] Fix integration test issue with interceptor #39324

Open m2-assistant[bot] opened 3 weeks ago

m2-assistant[bot] commented 3 weeks ago

This issue is automatically created based on existing pull request: magento/magento2#37187: Fix integration test issue with interceptor


I have seen the following error:

Property Magento\TestFramework\App\Config\Interceptor::$data does not exist

This is because \Magento\TestFramework\Store\StoreManager::reinitStores does not take into account that \Magento\TestFramework\App\Config as returned from the ObjectManager might just as well be a \Magento\TestFramework\App\Config\Interceptor, in case a plugin on that class exists for example.

To be able to still get the data that is needed for the test, there is the need to test for the implementation of \Magento\Framework\Interception\InterceptorInterface and get the $data property from the parent.

Description (*)

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes magento/magento2#

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

Resolved issues:

  1. [x] resolves magento/magento2#37383: Fix integration test issue with interceptor
github-jira-sync-bot commented 3 weeks ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-13305 is successfully created for this GitHub issue.

m2-assistant[bot] commented 3 weeks ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.