Nwidart\Modules\tests\Commands\ModelCommandTest::it_generates_correct_fillable_fields PHP Method

it_generates_correct_fillable_fields() public method

    public function it_generates_correct_fillable_fields()
    {
        $this->artisan('module:make-model', ['model' => 'Post', 'module' => 'Blog', '--fillable' => 'title,slug']);
        $file = $this->finder->get($this->modulePath . '/Entities/Post.php');
        $this->assertTrue(str_contains($file, "protected \$fillable = [\"title\",\"slug\"];"));
    }