function testUnbindBoltFromProduct() { $this->setRequestParams(array('wheel_side_pattern' => '4x114.3')); $binder = new Elite_Vafwheeladapter_Observer_WheelSideBinder(); $product = new Elite_Vaf_Model_Catalog_Product(); $product->setId(1); $event = $this->event($product); $binder->bindWheelSide($event); $this->setRequestParams(array('wheel_side_pattern' => '')); $binder = new Elite_Vafwheeladapter_Observer_WheelSideBinder(); $product = new Elite_Vaf_Model_Catalog_Product(); $product->setId(1); $event = $this->event($product); $binder->bindWheelSide($event); $wheeladapterProduct = new Elite_Vafwheeladapter_Model_Catalog_Product($product); $this->assertFalse($wheeladapterProduct->getWheelSideBoltPattern(), 'should unbind bolt pattern from product'); }
function testCreateNewProduct() { $product = new Elite_Vaf_Model_Catalog_Product(); $wheelAdapterProduct = new Elite_Vafwheeladapter_Model_Catalog_Product($product); $this->assertFalse($wheelAdapterProduct->getWheelSideBoltPattern(), 'should create new product w/ no bolt patterns'); }