public function testGetLabel() { $this->assertEmpty($this->_model->getLabel()); $this->_model->setProductAttribute(new \Magento\Framework\Object(['store_label' => 'Store Label'])); $this->assertEquals('Store Label', $this->_model->getLabel()); $this->_model->setUseDefault(1)->setProductAttribute(new \Magento\Framework\Object(['store_label' => 'Other Label'])); $this->assertEquals('Other Label', $this->_model->getLabel()); }