Refactored tests with new Testable class

This commit is contained in:
asantibanez
2023-07-25 13:42:43 -05:00
parent 3dcc97bef3
commit c79dfeb0ab
6 changed files with 12 additions and 12 deletions

View File

@@ -3,12 +3,12 @@
namespace Asantibanez\LivewireCharts\Tests;
use Asantibanez\LivewireCharts\Charts\LivewireAreaChart;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Livewire\Testing\TestableLivewire;
class LivewireAreaChartTest extends TestCase
{
private function buildComponent() : TestableLivewire
private function buildComponent() : Testable
{
return Livewire::test(LivewireAreaChart::class);
}

View File

@@ -3,12 +3,12 @@
namespace Asantibanez\LivewireCharts\Tests;
use Asantibanez\LivewireCharts\Charts\LivewireColumnChart;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Livewire\Testing\TestableLivewire;
class LivewireColumnChartTest extends TestCase
{
private function buildComponent() : TestableLivewire
private function buildComponent() : Testable
{
return Livewire::test(LivewireColumnChart::class);
}

View File

@@ -3,12 +3,12 @@
namespace Asantibanez\LivewireCharts\Tests;
use Asantibanez\LivewireCharts\Charts\LivewireLineChart;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Livewire\Testing\TestableLivewire;
class LivewireLineChartTest extends TestCase
{
private function buildComponent() : TestableLivewire
private function buildComponent() : Testable
{
return Livewire::test(LivewireLineChart::class);
}

View File

@@ -3,12 +3,12 @@
namespace Asantibanez\LivewireCharts\Tests;
use Asantibanez\LivewireCharts\Charts\LivewirePieChart;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Livewire\Testing\TestableLivewire;
class LivewirePieChartTest extends TestCase
{
private function buildComponent() : TestableLivewire
private function buildComponent() : Testable
{
return Livewire::test(LivewirePieChart::class);
}

View File

@@ -3,12 +3,12 @@
namespace Asantibanez\LivewireCharts\Tests;
use Asantibanez\LivewireCharts\Charts\LivewireRadarChart;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Livewire\Testing\TestableLivewire;
class LivewireRadarChartTest extends TestCase
{
private function buildComponent() : TestableLivewire
private function buildComponent() : Testable
{
return Livewire::test(LivewireRadarChart::class);
}

View File

@@ -3,12 +3,12 @@
namespace Asantibanez\LivewireCharts\Tests;
use Asantibanez\LivewireCharts\Charts\LivewireTreeMapChart;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Livewire\Testing\TestableLivewire;
class LivewireTreeMapChartTest extends TestCase
{
private function buildComponent() : TestableLivewire
private function buildComponent() : Testable
{
return Livewire::test(LivewireTreeMapChart::class);
}