blackbird / magento-mock-object
N/A
Installs: 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.4.0||~8.0.0||~8.1.0||~8.2.0
- magento/framework: *
- magento/module-catalog: *
- magento/module-customer: *
- magento/module-quote: *
- magento/module-sales: *
This package is auto-updated.
Last update: 2024-11-06 18:03:30 UTC
README
magento-mock-object
This module is a simple repository to use on require-dev to have available objects that implements DataObject methods.
Since almost every object in magento extends from DataObject,
mocking object with PHPUnit can be painful as you have to handle popular methods
like getData()
or setData()
manually on every object you mock.
More objects will be added.
Setup
Get the package
Composer Package:
composer require --dev blackbird/magento-mock-object
Install the module
Go to your Magento root directory and run the following magento command:
php bin/magento setup:upgrade