Skip to content

Commit 284aa2f

Browse files
committed
ITT: assertCommandRegistered renamed to seeRegisteredCommand.
1 parent 1f534a4 commit 284aa2f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Provides Laravel-specific testing helpers and asserts.
116116
- [ServiceProviderAsserts](#serviceproviderasserts)
117117
- [seeRegisteredAlias](#seeregisteredalias)
118118
- [dontSeeRegisteredAlias](#dontseeregisteredalias)
119-
- [assertCommandRegistered](#assertcommandregistered)
119+
- [seeRegisteredCommand](#seeregisteredcommand)
120120
- [assertCommandNotRegistered](#assertcommandnotregistered)
121121
122122
## Helpers
@@ -549,12 +549,12 @@ Checks that specified alias was not registered by alias loader:
549549
$this->dontSeeRegisteredAlias('Acme\Alias\Fake');
550550
```
551551
552-
#### `assertCommandRegistered()`
552+
#### `seeRegisteredCommand()`
553553
554554
Checks that specified command was successfully registered by service provider:
555555
556556
```php
557-
$this->assertCommandRegistered('do-something');
557+
$this->seeRegisteredCommand('do-something');
558558
```
559559
560560
#### `assertCommandNotRegistered()`

src/Asserts/ServiceProviderAsserts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function dontSeeRegisteredAlias($alias)
1919
$this->assertEmpty(AliasLoader::getInstance()->load($alias), $message);
2020
}
2121

22-
protected function assertCommandRegistered($name)
22+
protected function seeRegisteredCommand($name)
2323
{
2424
$message = "Failed asserting that command `{$name}` is registered.";
2525
$this->assertArrayHasKey($name, Artisan::all(), $message);

tests/Asserts/ServiceProviderAssertsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public function it_has_dont_see_registered_alias_assertion()
2020
}
2121

2222
/** @test */
23-
public function it_has_command_registered_assertion()
23+
public function it_has_see_registered_command_assertion()
2424
{
25-
$this->assertCommandRegistered('generic');
25+
$this->seeRegisteredCommand('generic');
2626
}
2727

2828
/** @test */

0 commit comments

Comments
 (0)