-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
4 changed files
with
74 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
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 |
---|---|---|
|
@@ -36,6 +36,23 @@ public function it_can_set_storage_path() | |
$this->assertEquals('foo', $this->disposable()->getStoragePath()); | ||
} | ||
|
||
#[Test] | ||
public function it_can_get_include_subdomains() | ||
{ | ||
$this->assertEquals( | ||
$this->app['config']['disposable-email.include_subdomains'], | ||
$this->disposable()->getIncludeSubdomains() | ||
); | ||
} | ||
|
||
#[Test] | ||
public function it_can_set_include_subdomains() | ||
{ | ||
$this->disposable()->setIncludeSubdomains(true); | ||
|
||
$this->assertEquals(true, $this->disposable()->getIncludeSubdomains()); | ||
} | ||
|
||
#[Test] | ||
public function it_can_get_cache_key() | ||
{ | ||
|
@@ -162,6 +179,14 @@ public function it_checks_the_full_email_domain() | |
$this->assertTrue($this->disposable()->isNotDisposable('[email protected]')); | ||
} | ||
|
||
#[Test] | ||
public function it_can_check_subdomains() | ||
{ | ||
$this->disposable()->setIncludeSubdomains(true); | ||
|
||
$this->assertTrue($this->disposable()->isDisposable('[email protected]')); | ||
} | ||
|
||
#[Test] | ||
public function it_can_exclude_whitelisted_domains() | ||
{ | ||
|