File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Illuminated \Testing \Asserts \ServiceProviderAsserts ;
4+
5+ class ServiceProviderAssertsTest extends TestCase
6+ {
7+ use ServiceProviderAsserts;
8+
9+ protected function getPackageProviders ($ app )
10+ {
11+ return [FixtureServiceProvider::class];
12+ }
13+
14+ /** @test */
15+ public function it_has_command_registered_assertion ()
16+ {
17+ $ this ->assertCommandRegistered ('generic ' );
18+ }
19+
20+ /** @test */
21+ public function it_has_command_not_registered_assertion ()
22+ {
23+ $ this ->assertCommandNotRegistered ('unexisting ' );
24+ }
25+
26+ /** @test */
27+ public function it_has_alias_registered_assertion ()
28+ {
29+ $ this ->assertAliasRegistered ('Fixture\Alias\Post ' );
30+ }
31+
32+ /** @test */
33+ public function it_has_alias_not_registered_assertion ()
34+ {
35+ $ this ->assertAliasNotRegistered ('Fixture\Alias\Unexisting ' );
36+ }
37+ }
You can’t perform that action at this time.
0 commit comments