Skip to content

Commit e25ba35

Browse files
committed
ITT: ServiceProviderAsserts tests added.
1 parent 14ae968 commit e25ba35

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
}

0 commit comments

Comments
 (0)