-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65b0cee
commit ca625a6
Showing
2 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php namespace Arcanesoft\Settings\Tests\Providers; | ||
|
||
use Arcanesoft\Settings\Providers\CommandServiceProvider; | ||
use Arcanesoft\Settings\Tests\TestCase; | ||
|
||
/** | ||
* Class CommandServiceProviderTest | ||
* | ||
* @package Arcanesoft\Settings\Tests\Providers | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class CommandServiceProviderTest extends TestCase | ||
{ | ||
/* ------------------------------------------------------------------------------------------------ | ||
| Properties | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** @var CommandServiceProvider */ | ||
private $provider; | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Main Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
public function setUp() | ||
{ | ||
parent::setUp(); | ||
|
||
$this->provider = $this->app->getProvider(CommandServiceProvider::class); | ||
} | ||
|
||
public function tearDown() | ||
{ | ||
unset($this->provider); | ||
|
||
parent::tearDown(); | ||
} | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Test Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** @test */ | ||
public function it_can_be_instantiated() | ||
{ | ||
$expectations = [ | ||
\Illuminate\Support\ServiceProvider::class, | ||
\Arcanedev\Support\ServiceProvider::class, | ||
\Arcanedev\Support\Providers\CommandServiceProvider::class, | ||
\Arcanesoft\Settings\Providers\CommandServiceProvider::class, | ||
]; | ||
|
||
foreach ($expectations as $expected) { | ||
$this->assertInstanceOf($expected, $this->provider); | ||
} | ||
} | ||
|
||
/** @test */ | ||
public function it_can_provides() | ||
{ | ||
$expected = [ | ||
'arcanesoft.settings.commands.publish', | ||
]; | ||
|
||
$this->assertEquals($expected, $this->provider->provides()); | ||
} | ||
} |