Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TaxRate.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Fixture\DataSource;
10 use Magento\Mtf\Fixture\FixtureFactory;
11 
18 class TaxRate extends DataSource
19 {
25  protected $fixture;
26 
33  public function __construct(FixtureFactory $fixtureFactory, array $params, array $data = [])
34  {
35  $this->params = $params;
36  if (isset($data['dataset'])) {
37  $datasets = $data['dataset'];
38  foreach ($datasets as $dataset) {
40  $taxRate = $fixtureFactory->createByCode('taxRate', ['dataset' => $dataset]);
41  $this->fixture[] = $taxRate;
42  $this->data[] = $taxRate->getCode();
43  }
44  }
45  }
46 
52  public function getFixture()
53  {
54  return $this->fixture;
55  }
56 }
$taxRate
Definition: tax_rule.php:12
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18