Exemplo n.º 1
0
 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');
 }
Exemplo n.º 2
0
 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');
 }