-
-
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.
Added Minify, User Helper. Update Test
- Loading branch information
1 parent
204ad0d
commit 5e0009d
Showing
4 changed files
with
94 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace CleaniqueCoders\LaravelHelper\Tests; | ||
|
||
class MinifyHelperTest extends TestCase | ||
{ | ||
/** @test */ | ||
public function it_has_minify_helper() | ||
{ | ||
$this->assertTrue(function_exists('minify')); | ||
} | ||
|
||
/** @test */ | ||
public function it_can_minify_html() | ||
{ | ||
$content = '<html> | ||
<head> | ||
<title>Laravel Helper</title> | ||
</head> | ||
<body> | ||
<h1>Laravel Helper</h1> | ||
</body> | ||
</html>'; | ||
$expected = '<html><head><title>Laravel Helper</title></head><body><h1>Laravel Helper</h1></body></html>'; | ||
$actual = minify($content); | ||
$this->assertEquals($expected, $actual); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace CleaniqueCoders\LaravelHelper\Tests; | ||
|
||
class UserHelperTest extends TestCase | ||
{ | ||
/** @test */ | ||
public function it_has_user_helper() | ||
{ | ||
$this->assertTrue(function_exists('user')); | ||
} | ||
} |