set_shipping_last_name() public method

Set shipping_last_name.
public set_shipping_last_name ( string $value )
$value string
示例#1
0
 /**
  * Test: get_formatted_shipping_address
  */
 function test_get_formatted_shipping_address()
 {
     $object = new WC_Order();
     $object->set_shipping_first_name('Barney');
     $object->set_shipping_last_name('Rubble');
     $object->set_shipping_company('Bedrock Ltd.');
     $object->set_shipping_address_1('34 Stonepants avenue');
     $object->set_shipping_address_2('Rockville');
     $object->set_shipping_city('Bedrock');
     $object->set_shipping_state('Boulder');
     $object->set_shipping_postcode('00001');
     $object->set_shipping_country('US');
     $this->assertEquals('Barney Rubble<br/>Bedrock Ltd.<br/>34 Stonepants avenue<br/>Rockville<br/>Bedrock, BOULDER 00001<br/>United States (US)', $object->get_formatted_shipping_address());
 }