/** * Test: has_cart_hash */ function test_has_cart_hash() { $object = new WC_Order(); $this->assertFalse($object->has_cart_hash('12345')); $set_to = '12345'; $object->set_cart_hash($set_to); $this->assertTrue($object->has_cart_hash('12345')); }