File tree Expand file tree Collapse file tree 4 files changed +51
-22
lines changed
Expand file tree Collapse file tree 4 files changed +51
-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 \LivewireStatusBoard \Tests ;
4+
5+ use Asantibanez \LivewireStatusBoard \LivewireStatusBoard ;
6+ use Livewire \LivewireManager ;
7+ use Livewire \Testing \TestableLivewire ;
8+
9+ class LivewireStatusBoardTest extends TestCase
10+ {
11+ private function createComponent ($ parameters ) : TestableLivewire
12+ {
13+ return app (LivewireManager::class)->test (LivewireStatusBoard::class, $ parameters );
14+ }
15+
16+ /** @test */
17+ public function can_build_component ()
18+ {
19+ //Arrange
20+
21+ //Act
22+ $ component = $ this ->createComponent ([]);
23+
24+ //Assert
25+ $ this ->assertNotNull ($ component );
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Asantibanez \LivewireStatusBoard \Tests ;
4+
5+ use Asantibanez \LivewireStatusBoard \LivewireStatusBoardServiceProvider ;
6+ use Livewire \LivewireServiceProvider ;
7+ use Orchestra \Testbench \TestCase as BaseCase ;
8+
9+ class TestCase extends BaseCase
10+ {
11+ protected function getPackageProviders ($ app )
12+ {
13+ return [
14+ LivewireServiceProvider::class,
15+ LivewireStatusBoardServiceProvider::class,
16+ ];
17+ }
18+
19+ protected function getEnvironmentSetUp ($ app )
20+ {
21+ $ app ['config ' ]->set ('app.key ' , 'base64:Hupx3yAySikrM2/edkZQNQHslgDWYfiBfCuSThJ5SK8= ' );
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments