/** * Returns the list of default exclusions * * @return array */ public function getDefaultExclusions() { $exclusions = parent::getDefaultExclusions(); //Determine if the Weee amount should be excluded from the price if ($this->typeOfDisplay([Tax::DISPLAY_EXCL_DESCR_INCL, Tax::DISPLAY_EXCL])) { $exclusions[] = \Magento\Weee\Pricing\Adjustment::ADJUSTMENT_CODE; } return $exclusions; }
/** * Test for method getDefaultExclusions */ public function testGetDefaultExclusions() { $defaultExclusions = $this->model->getDefaultExclusions(); $this->assertNotEmpty($defaultExclusions, 'Expected to have at least one default exclusion'); $this->assertContains($this->model->getAdjustmentCode(), $defaultExclusions); }