|
3 | 3 | class ArtisanHelpersTest extends TestCase |
4 | 4 | { |
5 | 5 | /** @test */ |
6 | | - public function it_can_run_console_command_by_class_name() |
| 6 | + public function it_can_run_artisan_command_by_class_name() |
7 | 7 | { |
8 | | - $command = $this->runConsoleCommand(GenericCommand::class); |
| 8 | + $command = $this->runArtisan(GenericCommand::class); |
9 | 9 |
|
10 | 10 | $this->assertInstanceOf(GenericCommand::class, $command); |
11 | 11 | $this->assertEquals('Hello, Dude!', $command->getGreetingMessage()); |
12 | 12 | } |
13 | 13 |
|
14 | 14 | /** @test */ |
15 | | - public function it_can_run_console_command_by_class_name_and_parameters() |
| 15 | + public function it_can_run_artisan_command_by_class_name_and_parameters() |
16 | 16 | { |
17 | | - $command = $this->runConsoleCommand(GenericCommand::class, ['--name' => 'John']); |
| 17 | + $command = $this->runArtisan(GenericCommand::class, ['--name' => 'John']); |
18 | 18 |
|
19 | 19 | $this->assertInstanceOf(GenericCommand::class, $command); |
20 | 20 | $this->assertEquals('Hello, John!', $command->getGreetingMessage()); |
21 | 21 | } |
22 | 22 |
|
23 | 23 | /** @test */ |
24 | | - public function it_can_run_console_command_by_object() |
| 24 | + public function it_can_run_artisan_command_by_object() |
25 | 25 | { |
26 | | - $command = $this->runConsoleCommand(new GenericCommand); |
| 26 | + $command = $this->runArtisan(new GenericCommand); |
27 | 27 |
|
28 | 28 | $this->assertInstanceOf(GenericCommand::class, $command); |
29 | 29 | $this->assertEquals('Hello, Dude!', $command->getGreetingMessage()); |
30 | 30 | } |
31 | 31 |
|
32 | 32 | /** @test */ |
33 | | - public function it_can_run_console_command_by_object_and_parameters() |
| 33 | + public function it_can_run_artisan_command_by_object_and_parameters() |
34 | 34 | { |
35 | | - $command = $this->runConsoleCommand(new GenericCommand, ['--name' => 'Jane']); |
| 35 | + $command = $this->runArtisan(new GenericCommand, ['--name' => 'Jane']); |
36 | 36 |
|
37 | 37 | $this->assertInstanceOf(GenericCommand::class, $command); |
38 | 38 | $this->assertEquals('Hello, Jane!', $command->getGreetingMessage()); |
|
0 commit comments