blackbird/magento-mock-object

N/A

1.1.1 2023-12-06 15:34 UTC

This package is auto-updated.

Last update: 2024-11-06 18:03:30 UTC


README

magento-mock-object

Latest Stable Version License: MIT

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