/** * Load variable by code * * @param \Magento\Core\Model\Variable $object * @param string $code * @return $this */ public function loadByCode(\Magento\Core\Model\Variable $object, $code) { if ($result = $this->getVariableByCode($code, true, $object->getStoreId())) { $object->setData($result); } return $this; }
public function testGetSetStoreId() { $this->_model->setStoreId(1); $this->assertEquals(1, $this->_model->getStoreId()); }