From 0ab7940960b5bb9cf9fa1373fc8b569b2dfc1035 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Thu, 17 Sep 2015 12:11:10 -0400 Subject: [PATCH] Fix tests --- tests/FunctionalTestCase.php | 4 ++-- tests/PurifyTest.php | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/FunctionalTestCase.php b/tests/FunctionalTestCase.php index dea0aaf..d7d7c60 100644 --- a/tests/FunctionalTestCase.php +++ b/tests/FunctionalTestCase.php @@ -6,14 +6,14 @@ class FunctionalTestCase extends TestCase { - protected function getApplicationAliases($app) + protected function getPackageAliases($app) { return [ 'Purify' => 'Stevebauman\Purify\Facades\Purify', ]; } - protected function getApplicationProviders($app) + protected function getPackageProviders($app) { return [ 'Stevebauman\Purify\PurifyServiceProvider', diff --git a/tests/PurifyTest.php b/tests/PurifyTest.php index 06e9f46..099dd4b 100644 --- a/tests/PurifyTest.php +++ b/tests/PurifyTest.php @@ -7,7 +7,16 @@ class PurifyTest extends FunctionalTestCase { public $testInput = '

Test

'; - + + public function testClean() + { + $cleaned = Purify::clean($this->testInput); + + $expected = '

Test

'; + + $this->assertEquals($expected, $cleaned); + } + public function testCleanArray() { $cleaned = Purify::clean([$this->testInput, $this->testInput]);