Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit b77df5e

Browse files
committed
fix phpunit
1 parent 3cfe5ba commit b77df5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Rules/TrashmailRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ final class TrashmailRuleTest extends TestCase
1111
/** @test */
1212
public function it_validates_the_email_domain(): void
1313
{
14+
$this->app['config']->set('trashmail.disposable_email_detector.enabled', true);
15+
$this->app['config']->set('trashmail.dead_letter.enabled', true);
16+
1417
$rule = new TrashmailRule();
1518

1619
$this->assertFalse($rule->passes('email', 'example@fakeinbox.com'));
@@ -23,6 +26,8 @@ public function it_validates_the_email_domain(): void
2326
*/
2427
public function it_fails_known_trashmail_providers(string $domain): void
2528
{
29+
$this->app['config']->set('trashmail.disposable_email_detector.enabled', true);
30+
$this->app['config']->set('trashmail.dead_letter.enabled', true);
2631
$this->app['config']->set('trashmail.blacklist', $this->trashMailDomains());
2732

2833
$rule = new TrashmailRule();

0 commit comments

Comments
 (0)