Ejemplo n.º 1
0
 function testProductShouldExist()
 {
     $product = new Product(array('sku' => 'foo'));
     $product_mapper = new DataMapper($this->db);
     $product_mapper->save($product);
     $this->assertTrue($product_mapper->productExists('foo'), 'product should exist');
 }