-
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.
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,9 @@ final class TrashmailRuleTest extends TestCase | |
/** @test */ | ||
public function it_validates_the_email_domain(): void | ||
{ | ||
$this->app['config']->set('trashmail.disposable_email_detector.enabled', true); | ||
$this->app['config']->set('trashmail.dead_letter.enabled', true); | ||
|
||
$rule = new TrashmailRule(); | ||
|
||
$this->assertFalse($rule->passes('email', '[email protected]')); | ||
|
@@ -23,6 +26,8 @@ public function it_validates_the_email_domain(): void | |
*/ | ||
public function it_fails_known_trashmail_providers(string $domain): void | ||
{ | ||
$this->app['config']->set('trashmail.disposable_email_detector.enabled', true); | ||
$this->app['config']->set('trashmail.dead_letter.enabled', true); | ||
$this->app['config']->set('trashmail.blacklist', $this->trashMailDomains()); | ||
|
||
$rule = new TrashmailRule(); | ||
|