Skip to content

Commit

Permalink
Fixed: Domain test
Browse files Browse the repository at this point in the history
  • Loading branch information
toin0u committed Aug 17, 2013
1 parent 1a002f2 commit 1fad2bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/DigitalOcean/Tests/Domains/DomainsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,15 @@ public function testNewRecordUrlWithDomaineName()
);
}

/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage You need to provide the record_type.
*/
public function testNewRecordWithEmptyArray()
{
$this->domains->newRecord($this->domainId, array());
}

/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The record_type can only be A, CNAME, NS, TXT, MX or SRV
Expand Down

0 comments on commit 1fad2bf

Please sign in to comment.