-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
magento/magento2: Fixes for the schema cache.xsd #27307
magento/magento2: Fixes for the schema cache.xsd #27307
Conversation
@andrewbess unfortunately, only members of the maintainers team are allowed to assign developers to the pull request |
Just add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed function tests do not related to the improved functionality.
Hi @swnsma, thank you for the review.
|
@swnsma It's not finished yet? :-) |
@lbajsarowicz endless story :) |
Hello @lbajsarowicz |
/** | ||
* Unit test of the cache configuration | ||
*/ | ||
class ConfigTest extends \PHPUnit\Framework\TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can definately import the classes :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @lbajsarowicz
Thank you for your remark.
I have fixed it. Please check.
Thank you in advance.
*/ | ||
public function schemaCorrectlyIdentifiesInvalidXmlDataProvider(): array | ||
{ | ||
return include __DIR__ . '/_files/invalidCacheConfigXmlArray.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting approach to provide code samples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @lbajsarowicz
Thank you for your remark.
Magento already has the same data providers. Please take a look at the screenshot
Thank you in advance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes due to use of deprecated MockObject
. Please replace it with proper one :-)
*/ | ||
protected $_typeList; | ||
|
||
/** | ||
* @var \Magento\Framework\App\CacheInterface|\PHPUnit_Framework_MockObject_MockObject | ||
* @var CacheInterface|PHPUnit_Framework_MockObject_MockObject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with \PHPUnit\Framework\MockObject\MockObject
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @lbajsarowicz
Thank you for your remark.
I have fixed it. Please check.
Thank you in advance.
* @param string $defaultScope | ||
*/ | ||
public function __construct( | ||
public function __construct( //phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move that to DocBlock above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @lbajsarowicz
Thank you for your remark.
I have fixed it. Please check.
Thank you in advance.
\Magento\Framework\Config\FileResolverInterface $fileResolver, | ||
\Magento\Framework\Cache\Config\Converter $converter, | ||
\Magento\Framework\Cache\Config\SchemaLocator $schemaLocator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @lbajsarowicz
Thank you for your remark.
I have fixed it. Please check.
Thank you in advance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ Thank you for your contribution
Hi @lbajsarowicz, thank you for the review.
|
Hello @lbajsarowicz |
Integrity tests were introduced in this PR to check updated XSD schema. |
Failed static tests not related to the changes in this PR |
Hi @andrewbess, thank you for your contribution! |
Description (*)
This PR fixes the schema "cache.xsd" from Magento\Framework\Cache.
Fixed Issues (if relevant)
Fixes: #26224
Contribution checklist (*)