From 11272bd21b5f3378ccd86b5fa63e20683d8efc45 Mon Sep 17 00:00:00 2001 From: asantibanez Date: Wed, 16 Dec 2020 09:26:37 -0500 Subject: [PATCH] Added base tests for components --- phpunit.xml.dist | 2 +- tests/ExampleTest.php | 21 --------------------- tests/LivewireAreaChartTest.php | 25 +++++++++++++++++++++++++ tests/LivewireColumnChartTest.php | 25 +++++++++++++++++++++++++ tests/LivewireLineChartTest.php | 25 +++++++++++++++++++++++++ tests/LivewirePieChartTest.php | 25 +++++++++++++++++++++++++ tests/TestCase.php | 25 +++++++++++++++++++++++++ 7 files changed, 126 insertions(+), 22 deletions(-) delete mode 100755 tests/ExampleTest.php create mode 100755 tests/LivewireAreaChartTest.php create mode 100755 tests/LivewireColumnChartTest.php create mode 100755 tests/LivewireLineChartTest.php create mode 100755 tests/LivewirePieChartTest.php create mode 100755 tests/TestCase.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 22fe879..764a2f2 100755 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -22,7 +22,7 @@ - + diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php deleted file mode 100755 index a2fa5ef..0000000 --- a/tests/ExampleTest.php +++ /dev/null @@ -1,21 +0,0 @@ -assertTrue(true); - } -} diff --git a/tests/LivewireAreaChartTest.php b/tests/LivewireAreaChartTest.php new file mode 100755 index 0000000..5f5a52a --- /dev/null +++ b/tests/LivewireAreaChartTest.php @@ -0,0 +1,25 @@ +buildComponent(); + + //Assert + $this->assertNotNull($component); + } +} diff --git a/tests/LivewireColumnChartTest.php b/tests/LivewireColumnChartTest.php new file mode 100755 index 0000000..811336e --- /dev/null +++ b/tests/LivewireColumnChartTest.php @@ -0,0 +1,25 @@ +buildComponent(); + + //Assert + $this->assertNotNull($component); + } +} diff --git a/tests/LivewireLineChartTest.php b/tests/LivewireLineChartTest.php new file mode 100755 index 0000000..2dcea34 --- /dev/null +++ b/tests/LivewireLineChartTest.php @@ -0,0 +1,25 @@ +buildComponent(); + + //Assert + $this->assertNotNull($component); + } +} diff --git a/tests/LivewirePieChartTest.php b/tests/LivewirePieChartTest.php new file mode 100755 index 0000000..d4dc2f4 --- /dev/null +++ b/tests/LivewirePieChartTest.php @@ -0,0 +1,25 @@ +buildComponent(); + + //Assert + $this->assertNotNull($component); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100755 index 0000000..7f8f696 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,25 @@ +set('app.key', 'base64:Hupx3yAySikrM2/edkZQNQHslgDWYfiBfCuSThJ5SK8='); + } + +}