summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Pest.php17
-rw-r--r--tests/TestCase.php16
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/Pest.php b/tests/Pest.php
new file mode 100644
index 0000000..de94cf0
--- /dev/null
+++ b/tests/Pest.php
@@ -0,0 +1,17 @@
+<?php
+
+use Lightscale\LaralightTables\Tests\TestCase;
+
+/*
+|--------------------------------------------------------------------------
+| Test Case
+|--------------------------------------------------------------------------
+|
+| The closure you provide to your test functions is always bound to a specific PHPUnit test
+| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
+| need to change it using the "pest()" function to bind a different classes or traits.
+|
+*/
+
+pest()->extend(TestCase::class)
+ ->in('Feature');
diff --git a/tests/TestCase.php b/tests/TestCase.php
new file mode 100644
index 0000000..0965940
--- /dev/null
+++ b/tests/TestCase.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Lightscale\LaralightTables\Tests;
+
+use Orchestra\Testbench\TestCase as Orchestra;
+use Lightscale\LaralightTables\ServiceProvider;
+
+class TestCase extends Orchestra
+{
+ protected function getPackageProviders($app)
+ {
+ return [
+ ServiceProvider::class,
+ ];
+ }
+}