Nwidart\Modules\tests\Commands\ControllerCommandTest::it_generated_correct_file_with_content PHP Method

it_generated_correct_file_with_content() public method

    public function it_generated_correct_file_with_content()
    {
        $this->artisan('module:make-controller', ['controller' => 'MyController', 'module' => 'Blog']);
        $file = $this->finder->get($this->modulePath . '/Http/Controllers/MyController.php');
        $this->assertEquals($this->expectedContent(), $file);
    }