{"repo":"tddwizard/magento2-fixtures","free":true,"listed":false,"github":"https://github.com/tddwizard/magento2-fixtures","clone":"git clone https://github.com/tddwizard/magento2-fixtures.git","description":"Fixture library for Magento 2 integration tests by @schmengler (@integer-net)","language":"PHP","stars":147,"topics":["magento2","magento","magento2-module","testing-tools"],"license":"MIT","category":"dev-tools","readme_excerpt":"TddWizard Fixture library [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.md) [![Build Status][ico-travis]][link-travis] [![Coverage Status][ico-scrutinizer]][link-scrutinizer] [![Quality Score][ico-code-quality]][link-code-quality] --- Magento 2 Fixtures by Fabian Schmengler 🧙🏻‍♂ https://tddwizard.com/ What is it? An alternative to the procedural script based fixtures in Magento 2 integration tests. It aims to be: - extensible - expressive - easy to use Installation Install it into your Magento 2 project with composer: composer require --dev tddwizard/magento2-fixtures Requirements - Magento 2.3 or Magento 2.4 - PHP 7.3 or 7.4 (7.1 and 7.2 is allowed via composer for full Magento 2.3 compatibility but not tested anymore) Usage examples: Customer If you need a customer without specific data, this is all: It uses default sample data and a random email address. If you need the ID or email address in the tests, the CustomerFixture gives you access: You can configure the builder with attributes: You can add addresses to the customer: Or just one: The CustomerFixture also has a shortcut to create a customer session: Addresses Similar to the customer builder you can also configure the address builder with custom attributes: Product Product fixtures work similar as customer fixtures: The SKU is randomly generated and can be accessed through ProductFixture , just as the ID: Cart/Checkout To create a quote, use the CartBuilder","default_branch":null,"files":null,"tree":[],"storefront":"/r/tddwizard","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tddwizard/magento2-fixtures/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}