diff options
author | Sam Light <samlight1994@gmail.com> | 2025-01-18 20:17:47 +0000 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-01-18 20:17:47 +0000 |
commit | eb5c48b58d72d04abb093fceb32db842ec7ab5fb (patch) | |
tree | 4cf40914cba238a46dbb99c36d83e2dfb4efc3e0 /tests | |
parent | 7ae6611fbcee86e6dae9890c27da329fa036717f (diff) |
Setup testing
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Pest.php | 17 | ||||
-rw-r--r-- | tests/TestCase.php | 16 |
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, + ]; + } +} |