app->make(GeneratorCommand::class); $tester = $this->runCommand($command, [ '--eloquent' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('A new helper file was written to _ide_helper.php', $tester->getDisplay()); $this->assertStringNotContainsString('public static function configure($basePath = null)', $this->mockFilesystemOutput); $this->assertStringContainsString('class Eloquent extends \Illuminate\Database\Eloquent\Model', $this->mockFilesystemOutput); } }