-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from elbgoods/laravel-guzzle-v2
upgrade laravel-guzzle:2.0.0
- Loading branch information
Showing
10 changed files
with
82 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,42 @@ public function it_passes_whitelist_addresses(): void | |
$this->assertTrue($rule->passes('email', 'example@'.$domain)); | ||
} | ||
|
||
/** @test */ | ||
public function dead_letter_fails_with_disposable_email(): void | ||
{ | ||
$this->app['config']->set('trashmail.dead_letter.enabled', true); | ||
|
||
$rule = new TrashmailRule(); | ||
|
||
$this->assertFalse($rule->passes('email', '[email protected]')); | ||
} | ||
|
||
/** @test */ | ||
public function disposable_email_fails_with_disposable_email(): void | ||
{ | ||
$this->app['config']->set('trashmail.disposable_email_detector.enabled', true); | ||
|
||
$rule = new TrashmailRule(); | ||
|
||
$this->assertFalse($rule->passes('email', '[email protected]')); | ||
} | ||
|
||
/** @test */ | ||
public function verifier_fails_with_disposable_email(): void | ||
{ | ||
if ($this->app['config']->get('trashmail.verifier.api_key') === null) { | ||
$this->markTestSkipped('Verifier requires an API-Key'); | ||
|
||
return; | ||
} | ||
|
||
$this->app['config']->set('trashmail.verifier.enabled', true); | ||
|
||
$rule = new TrashmailRule(); | ||
|
||
$this->assertFalse($rule->passes('email', '[email protected]')); | ||
} | ||
|
||
public function provideTrashMailDomain(): array | ||
{ | ||
return array_map(static function (string $domain): array { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters