Skip to content

Commit

Permalink
Make test compatible with older versions of Laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jan 10, 2023
1 parent 7c5305e commit 644cd06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/PurifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Stevebauman\Purify\Definitions\Definition;
use Stevebauman\Purify\Facades\Purify;
use Stevebauman\Purify\PurifyServiceProvider;
use Symfony\Component\Finder\Finder;

class PurifyTest extends TestCase
{
Expand Down Expand Up @@ -140,7 +141,9 @@ public function test_caching_can_be_disabled()
Purify::driver()->clean('<span class="foo">Test</span>')
);

$this->assertTrue(File::isEmptyDirectory($dir));
$this->assertFalse(
Finder::create()->in($dir)->depth(0)->hasResults()
);
}
}

Expand Down

0 comments on commit 644cd06

Please sign in to comment.