Skip to content

[Issue] Fix integration test issue with interceptor #37383

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #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#<issue_number>

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Labels

Issue: needs updateAdditional information is require, waiting for responsePriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: done

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions