@magentoDataFixture Magento/Customer/_files/customer_sample.php @magentoDataFixture Magento/Catalog/_files/products.php @magentoDataFixture Magento/Weee/_files/product_with_fpt.php @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 18 of file TaxTest.php.
◆ setUp()
Definition at line 30 of file TaxTest.php.
33 $weeeConfig = $this->createMock(\
Magento\Weee\Model\Config::class);
34 $weeeConfig->expects($this->any())->method(
'isEnabled')->will($this->returnValue(
true));
35 $weeeConfig->expects($this->any())->method(
'isTaxable')->will($this->returnValue(
true));
37 $attribute->expects($this->any())->method(
'getAttributeCodesByFrontendType')->will(
38 $this->returnValue([
'weee'])
40 $attributeFactory = $this->createPartialMock(\
Magento\Eav\Model\Entity\AttributeFactory::class, [
'create']);
41 $attributeFactory->expects($this->any())->method(
'create')->will($this->returnValue(
$attribute));
44 [
'weeeConfig' => $weeeConfig,
'attributeFactory' => $attributeFactory]
47 \
Magento\Framework\Api\ExtensibleDataObjectConverter::class
static getObjectManager()
◆ $_model
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Weee/Model/TaxTest.php