<?php
/**
 * Created by IntelliJ IDEA.
 * User: mduncan
 * Date: 8/13/15
 * Time: 12:34 PM
 */

namespace Fulfillment\OMS\Tests;


class DataUtility
{
    public static function requestOrder()
    {
        return [
            'merchantId' => 1234,
            'orderId' => 'test123',
            'items' => [],
            'recipient' => DataUtility::requestRecipient(),
            'shippingMethod' => 'USPS'
        ];
    }

    public static function requestRecipient(){
        return [
            'firstName' => 'Joe',
            'lastName' => 'Schmoe',
            'address1' => '123 Main Street',
            'city' => 'Nowhereville',
            'state' => 'GA',
            'zip' => '30022',
            'email' => 'joe@schmoe.com',
            'country' => 'US'
        ];
    }
}
<?php
/**
 * Created by IntelliJ IDEA.
 * User: mduncan
 * Date: 8/13/15
 * Time: 12:34 PM
 */

namespace Fulfillment\OMS\Tests;


class DataUtility
{
    public static function requestOrder()
    {
        return [
            'merchantId' => 50001,
            'orderId' => 'asupertest123',
            'items' => [
                ['sku' => 'pizza',
                    'declaredValue' => 4.20,
                    'quantity' => 2]
            ],
            'recipient' => DataUtility::requestRecipient(),
            'shippingMethod' => 'USPS'
        ];
    }

    public static function requestRecipient()
    {
        return [
            'firstName' => 'Joe',
            'lastName' => 'Schmoe',
            'address1' => '123 Main Street',
            'city' => 'Nowhereville',
            'state' => 'GA',
            'zip' => '30022',
            'email' => 'joe@schmoe.com',
            'country' => 'US'
        ];
    }
}
Use valid data in test order object
Use valid data in test order object

Use a real merchant id and unused order Id. Helps when testing against the real system.
