File tree Expand file tree Collapse file tree 7 files changed +126
-22
lines changed Expand file tree Collapse file tree 7 files changed +126
-22
lines changed Original file line number Diff line number Diff line change 2222 <logging >
2323 <log type =" tap" target =" build/report.tap" />
2424 <log type =" junit" target =" build/report.junit.xml" />
25- <log type =" coverage-html" target =" build/coverage" charset = " UTF-8 " yui = " true " highlight = " true " />
25+ <log type =" coverage-html" target =" build/coverage" />
2626 <log type =" coverage-text" target =" build/coverage.txt" />
2727 <log type =" coverage-clover" target =" build/logs/clover.xml" />
2828 </logging >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Asantibanez \LivewireCharts \Tests ;
4+
5+ use Asantibanez \LivewireCharts \Charts \LivewireAreaChart ;
6+ use Livewire \Livewire ;
7+ use Livewire \Testing \TestableLivewire ;
8+
9+ class LivewireAreaChartTest extends TestCase
10+ {
11+ private function buildComponent () : TestableLivewire
12+ {
13+ return Livewire::test (LivewireAreaChart::class);
14+ }
15+
16+ /** @test */
17+ public function can_build_component ()
18+ {
19+ //Act
20+ $ component = $ this ->buildComponent ();
21+
22+ //Assert
23+ $ this ->assertNotNull ($ component );
24+ }
25+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Asantibanez \LivewireCharts \Tests ;
4+
5+ use Asantibanez \LivewireCharts \Charts \LivewireColumnChart ;
6+ use Livewire \Livewire ;
7+ use Livewire \Testing \TestableLivewire ;
8+
9+ class LivewireColumnChartTest extends TestCase
10+ {
11+ private function buildComponent () : TestableLivewire
12+ {
13+ return Livewire::test (LivewireColumnChart::class);
14+ }
15+
16+ /** @test */
17+ public function can_build_component ()
18+ {
19+ //Act
20+ $ component = $ this ->buildComponent ();
21+
22+ //Assert
23+ $ this ->assertNotNull ($ component );
24+ }
25+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Asantibanez \LivewireCharts \Tests ;
4+
5+ use Asantibanez \LivewireCharts \Charts \LivewireLineChart ;
6+ use Livewire \Livewire ;
7+ use Livewire \Testing \TestableLivewire ;
8+
9+ class LivewireLineChartTest extends TestCase
10+ {
11+ private function buildComponent () : TestableLivewire
12+ {
13+ return Livewire::test (LivewireLineChart::class);
14+ }
15+
16+ /** @test */
17+ public function can_build_component ()
18+ {
19+ //Act
20+ $ component = $ this ->buildComponent ();
21+
22+ //Assert
23+ $ this ->assertNotNull ($ component );
24+ }
25+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Asantibanez \LivewireCharts \Tests ;
4+
5+ use Asantibanez \LivewireCharts \Charts \LivewirePieChart ;
6+ use Livewire \Livewire ;
7+ use Livewire \Testing \TestableLivewire ;
8+
9+ class LivewirePieChartTest extends TestCase
10+ {
11+ private function buildComponent () : TestableLivewire
12+ {
13+ return Livewire::test (LivewirePieChart::class);
14+ }
15+
16+ /** @test */
17+ public function can_build_component ()
18+ {
19+ //Act
20+ $ component = $ this ->buildComponent ();
21+
22+ //Assert
23+ $ this ->assertNotNull ($ component );
24+ }
25+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Asantibanez \LivewireCharts \Tests ;
4+
5+ use Asantibanez \LivewireCharts \LivewireChartsServiceProvider ;
6+ use Livewire \LivewireServiceProvider ;
7+ use Orchestra \Testbench \TestCase as BaseTestCase ;
8+
9+ class TestCase extends BaseTestCase
10+ {
11+
12+ protected function getPackageProviders ($ app )
13+ {
14+ return [
15+ LivewireServiceProvider::class,
16+ LivewireChartsServiceProvider::class
17+ ];
18+ }
19+
20+ protected function getEnvironmentSetUp ($ app )
21+ {
22+ $ app ['config ' ]->set ('app.key ' , 'base64:Hupx3yAySikrM2/edkZQNQHslgDWYfiBfCuSThJ5SK8= ' );
23+ }
24+
25+ }
You can’t perform that action at this time.
0 commit comments