tddwizard / magento2-fixtures

Fixture library for Magento 2 integration tests by @schmengler (@integer-net)
http://tddwizard.com/
MIT License
141 stars 28 forks source link

Question: returning object from fixtures #66

Closed lfolco closed 3 years ago

lfolco commented 3 years ago

I noticed that a lot of the Fixture objects return properties, but not the actual object created. Is there a reason for that, or would you accept a PR that returns them?

Example: https://github.com/tddwizard/magento2-fixtures/blob/master/src/Sales/OrderFixture.php would have a method, getOrder() that returns $this->order.

schmengler commented 3 years ago

Originally I thought I would not need the objects but reality has proven me wrong already :grin: I'll accept a PR to add methods like that!