function testSetsTireType() { $importer = $this->importer($this->csvFile); $importer->import(); $product = $this->getVFProductForSku(self::SKU); $product = new VF_Tire_Catalog_TireProduct($product); $this->assertEquals(VF_Tire_Catalog_TireProduct::WINTER, $product->tireType(), 'should set tire type'); }
function testCreateNewProduct_TireType() { $product = new VF_Product(); $tireProduct = new VF_Tire_Catalog_TireProduct($product); $this->assertFalse($tireProduct->tireType(), 'should create new product w/ no tire type'); }