You are here

protected function MerciBaseTestCase::generateAddressInformation in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Generate random valid information for Address information.

File

merci_core/tests/merci_base.test, line 598
Defines abstract base test class for the Merci module tests.

Class

MerciBaseTestCase
Abstract class for Merci testing. All Merci tests should extend this class.

Code

protected function generateAddressInformation() {
  $address_info['name_line'] = $this
    ->randomName();
  $address_info['thoroughfare'] = $this
    ->randomName();
  $address_info['locality'] = $this
    ->randomName();
  $address_info['postal_code'] = rand(00, 99999);
  $address_info['administrative_area'] = 'KY';
  return $address_info;
}