Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateAttributeSetStep.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\TestStep\TestStepInterface;
11 
15 class CreateAttributeSetStep implements TestStepInterface
16 {
22  protected $attributeSet;
23 
30  public function __construct(CatalogAttributeSet $attributeSet)
31  {
32  $this->attributeSet = $attributeSet;
33  }
34 
40  public function run()
41  {
42  $this->attributeSet->persist();
43 
44  return ['attributeSet' => $this->attributeSet];
45  }
46 }