IvanChepurnyi/EcomDev_PHPUnit — pull request #53 by steverice (2012-09-17 20:24:31+00:00)
Title: EAV attributes can be loaded from fixture file

Here's a feature I've been using internally that allows loading EAV attributes from a fixture file. It will add the attributes on test set up and remove them without affecting existing attributes in the system.

The attributes are specified in the fixture YAML file by entity type, and can specify any data supported by that entity type. So for instance, here I'm adding a test product attribute with options a, b, c, and d:
```yaml
attributes:
:
-
attribute_code: test_attribute
type: int
label: Test Attribute
input: text
source: 'eav/entity_attribute_source_table'
required: false
user_defined: false
unique: false
global:
visible: false
searchable: false
filterable: false
comparable: false
visible_on_front: false
is_configurable: true
apply_to: ''
option: {values: [a, b, c, d]}
```

Note that I'm using PHP execution from the Symfony YAML parser, but this is not part of the pull request.

Anyway, go ahead and accept this if you think it may be useful to others. And thanks much for developing this module, it's been extremely helpful!