Skip to content

Commit 9c3093a

Browse files
committed
ITT: assertCommandNotRegistered renamed to dontSeeRegisteredCommand.
1 parent 284aa2f commit 9c3093a

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
@@ -117,7 +117,7 @@ Provides Laravel-specific testing helpers and asserts.
117117
- [seeRegisteredAlias](#seeregisteredalias)
118118
- [dontSeeRegisteredAlias](#dontseeregisteredalias)
119119
- [seeRegisteredCommand](#seeregisteredcommand)
120-
- [assertCommandNotRegistered](#assertcommandnotregistered)
120+
- [dontSeeRegisteredCommand](#dontSeeRegisteredCommand)
121121
122122
## Helpers
123123
@@ -557,10 +557,10 @@ Checks that specified command was successfully registered by service provider:
557557
$this->seeRegisteredCommand('do-something');
558558
```
559559
560-
#### `assertCommandNotRegistered()`
560+
#### `dontSeeRegisteredCommand()`
561561
562562
Checks that specified command was not registered by service provider:
563563
564564
```php
565-
$this->assertCommandNotRegistered('fake');
565+
$this->dontSeeRegisteredCommand('fake');
566566
```

src/Asserts/ServiceProviderAsserts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function seeRegisteredCommand($name)
2525
$this->assertArrayHasKey($name, Artisan::all(), $message);
2626
}
2727

28-
protected function assertCommandNotRegistered($name)
28+
protected function dontSeeRegisteredCommand($name)
2929
{
3030
$message = "Failed asserting that command `{$name}` is not registered.";
3131
$this->assertArrayNotHasKey($name, Artisan::all(), $message);

tests/Asserts/ServiceProviderAssertsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function it_has_see_registered_command_assertion()
2626
}
2727

2828
/** @test */
29-
public function it_has_command_not_registered_assertion()
29+
public function it_has_dont_see_registered_command_assertion()
3030
{
31-
$this->assertCommandNotRegistered('fake');
31+
$this->dontSeeRegisteredCommand('fake');
3232
}
3333
}

0 commit comments

Comments
 (0)