app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--nowrite' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Model information was written to _ide_helper_models.php', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }