Alter the properties of a Domain.
public editDomain ( integer $id, string $returnPathDomain = NULL ) : Postmark\Models\DynamicResponseModel | ||
$id | integer | The ID for the Domain we wish to modify. |
$returnPathDomain | string | The custom Return-Path domain for the Domain. |
return | Postmark\Models\DynamicResponseModel |
function testClientCanEditDomain() { $tk = parent::$testKeys; $client = new PostmarkAdminClient($tk->WRITE_ACCOUNT_TOKEN, $tk->TEST_TIMEOUT); $domainName = 'test-php-edit-' . $tk->WRITE_TEST_DOMAIN_NAME; $returnPath = 'return.' . $domainName; $domain = $client->createDomain($domainName, $returnPath); $updated = $client->editDomain($domain->id, 'updated-' . $returnPath); $this->assertNotSame($domain->returnpathdomain, $updated->returnpathdomain); }