Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibor Hercz authored and DavidGarciaCat committed Aug 14, 2020
1 parent b91979b commit 4641cf7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/Api/DomainTest.php
Expand Up @@ -129,6 +129,38 @@ public function testCreateWithPasswordSpamActionWildcard()
$api->create('example.com', 'foo', 'bar', true);
}

public function testCreateWithPasswordForceDkimAuthority()
{
$this->setRequestMethod('POST');
$this->setRequestUri('/v3/domains');
$this->setRequestBody([
'name' => 'example.com',
'smtp_password' => 'foo',
'force_dkim_authority' => 'true',
]);
$this->setHydrateClass(CreateResponse::class);

$api = $this->getApiInstance();
$api->create('example.com', 'foo', null, null, true);
}

public function testCreateWithPasswordSpamActionWildcardForceDkimAuthority()
{
$this->setRequestMethod('POST');
$this->setRequestUri('/v3/domains');
$this->setRequestBody([
'name' => 'example.com',
'smtp_password' => 'foo',
'spam_action' => 'bar',
'wildcard' => 'true',
'force_dkim_authority' => 'true',
]);
$this->setHydrateClass(CreateResponse::class);

$api = $this->getApiInstance();
$api->create('example.com', 'foo', 'bar', true, true);
}

public function testDelete()
{
$this->setRequestMethod('DELETE');
Expand Down

0 comments on commit 4641cf7

Please sign in to comment.