-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Unit] Fix broken unit tests #23592
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
[Unit] Fix broken unit tests #23592
Conversation
Hi @Den4ik. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
05af6cd
to
1aa909f
Compare
ca5aa8d
to
9bf0d67
Compare
Hi @orlangur |
df8f027
to
8194cf9
Compare
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.
Thanks @Den4ik! Didn't check locally but from 9 checks this seems to be ready.
Hi @orlangur, thank you for the review.
|
✔️ QA Passed |
Hi @Den4ik, thank you for your contribution! |
Description (*)
This PR fixing broken unit tests:
PHP Fatal error: Class Mock_OrderPaymentExtensionInterface_175badce contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Magento\Sales\Api\Data\OrderPaymentExtensionInterface::getVaultPaymentToken) in 23dev/vendor/phpunit/phpunit-mock-objects/src/Generator.php(264) : eval()'d code on line 1
Magento\TestFramework\Dependency\PhpRuleTest::testGetDependencyInfoCaseGetUrl with data set "getUrl from same module" ('Magento\Cms\SomeClass', '$this->getUrl("cms/index/index")', array()) Magento\Framework\Exception\LocalizedException: Invalid URL path: cms/index/index
Magento\TestFramework\Dependency\PhpRuleTest::testGetDependencyInfoCaseGetUrl with data set "getUrl from another module" ('Magento\SomeModule\SomeClass', '$this->getUrl("cms/index/index")', array(array('Magento\Cms', 'hard', 'getUrl("cms/index/index"'))) Magento\Framework\Exception\LocalizedException: Invalid URL path: cms/index/index
Magento\Reports\Test\Unit\Model\ResourceModel\Product\CollectionTest::testAddViewsCount Error: Call to a member function getDefaultAttributeSetId() on null
Fixed Issues (if relevant)
No issue
Manual testing scenarios (*)
php bin/magento dev:tests:run unit
Questions or comments
Another one failed test:
Magento\Framework\App\Test\Unit\ObjectManagerFactoryTest::testCreateObjectManagerFactoryCouldBeOverridden Failed asserting that exception of type "\BadMethodCallException" is thrown.
Contribution checklist (*)