Skip to content

Commit

Permalink
fix phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Feb 18, 2020
1 parent 3cfe5ba commit b77df5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Rules/TrashmailRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]'));
Expand All @@ -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();
Expand Down

0 comments on commit b77df5e

Please sign in to comment.