Skip to content

Commit

Permalink
Increment covereage
Browse files Browse the repository at this point in the history
  • Loading branch information
vitormattos committed May 13, 2021
1 parent dbfa264 commit 062f020
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Unit/Service/WebhookServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ public function testValidateFileUrl() {
]);
}

public function testValidateFileUrlWithoutAllNecessaryData() {
$this->expectExceptionMessage('Inform URL or base64 or fileId to sign');
$this->service->validateFile([
'file' => ['invalid'],
'name' => 'test'
]);
}

public function testValidateNameIsMandatory() {
$this->expectExceptionMessage('Name is mandatory');

Expand Down

0 comments on commit 062f020

Please sign in to comment.