Nwidart\Modules\tests\Commands\GenerateCommandCommandTest::it_uses_set_command_name_in_class PHP Method

it_uses_set_command_name_in_class() public method

    public function it_uses_set_command_name_in_class()
    {
        $this->artisan('module:make-command', ['name' => 'MyAwesomeCommand', 'module' => 'Blog', '--command' => 'my:awesome']);
        $file = $this->finder->get($this->modulePath . '/Console/MyAwesomeCommand.php');
        $this->assertTrue(str_contains($file, "protected \$name = 'my:awesome';"));
    }