/** * Test for method _getExportAttrCodes() * * @covers \Magento\ImportExport\Model\Export\Entity\AbstractEav::_getExportAttributeCodes */ public function testGetExportAttrCodes() { $this->_model->setParameters($this->_getSkippedAttributes()); $method = new \ReflectionMethod($this->_model, '_getExportAttributeCodes'); $method->setAccessible(true); $attributes = $method->invoke($this->_model); foreach (self::$_skippedAttributes as $code) { $this->assertNotContains($code, $attributes); } }
/** * Set parameters (push filters from post into export customer model) * * @param array $parameters * @return $this */ public function setParameters(array $parameters) { // push filters from post into export customer model $this->_customerEntity->setParameters($parameters); $this->_initCustomers(); return parent::setParameters($parameters); }