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'); }
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'); }