-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Jolita Grazyte
committed
Mar 1, 2016
1 parent
5e342c8
commit 9c525c0
Showing
1 changed file
with
12 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -111,10 +111,21 @@ public function it_can_remove_the_fragment() | |
*/ | ||
public function it_can_determine_if_the_url_is_an_email_url() | ||
{ | ||
$this->assertFalse(Url::create('https://spatie.be/')->isEmailUrl()); | ||
$this->assertFalse(Url::create('https://spa' . | ||
'tie.be/')->isEmailUrl()); | ||
$this->assertTrue(Url::create('mailto:[email protected]')->isEmailUrl()); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function it_can_determine_if_the_url_is_javascript_url() | ||
{ | ||
$url = (new Url('javascript:alert()')); | ||
$this->assertTrue($url->isJavascript()); | ||
} | ||
|
||
|
||
/** | ||
* @test | ||
*/ | ||
|