예제 #1
0
 function testShouldNotFindBySKU()
 {
     $product = new Product(array('sku' => 'foo'));
     // save !
     $product_mapper = new DataMapper($this->db);
     $product_mapper->save($product);
     $this->assertFalse($product_mapper->findBySku('bar'), 'should not find a non-existent sku');
 }