Created
July 20, 2014 20:00
-
-
Save jamescowie/cdfe90d9557e467ab008 to your computer and use it in GitHub Desktop.
Custom attribute assertion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$model = \Mage::getModel('catalog/product')->loadByAttribute('sku', $sku); | |
$model->setHighestOnlinePrice($highestPrice); // This attribute does NOT exist in Magento | |
$model->save(); | |
PHPUnit_Framework_Assert::assertTrue($model->offsetExists('highest_online_price')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment