PHPackages                             magetest/manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. magetest/manager

ActiveLibrary[Testing &amp; Quality](/categories/testing)

magetest/manager
================

Magento fixture manager

v0.9.0(11y ago)1744.1k11[2 issues](https://github.com/MageTest/Manager/issues)[4 PRs](https://github.com/MageTest/Manager/pulls)MITPHPPHP &gt;=5.3

Since Aug 4Pushed 10y ago14 watchersCompare

[ Source](https://github.com/MageTest/Manager)[ Packagist](https://packagist.org/packages/magetest/manager)[ RSS](/packages/magetest-manager/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

Manager
=======

[](#manager)

[![Build Status](https://camo.githubusercontent.com/dbac3585719f7157ba988cb09dd2751b8b1f61e83f2f3145dc6dd22167f18d3e/68747470733a2f2f7472617669732d63692e6f72672f4d616765546573742f4d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MageTest/Manager)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d103c366604794415d581d0aec88c307da5685b6716f8be3814f88f2c0cf1a65/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d616765546573742f4d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MageTest/Manager/?branch=master)

Manager is a PHP library that manages test fixtures for a Magento site.

Fixtures
--------

[](#fixtures)

Manager takes YAML files as an input to create fixtures for a Magento test environment.

A YAML file maps to a Magento model via the key of the collection. The collection then maps to the model attributes of the defined Magento model.

Defining a model in a YAML file would look like this:

```
customer/customer:
    firstname: test
    lastname: test
    email: customer@example.com
    password: 123123pass
    website_id: 1
    store: 1
    status: 1
```

The most important part, is the key in the collection. This is the argument supplied to `Mage::getModel()`. After we define the fixture, all we need to do now is load it into the Manager.

```
