set('ide-helper.write_query_methods', false); } public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); $this->assertStringNotContainsString("@method static \Illuminate\Database\Eloquent\Builder|Post query()", $this->mockFilesystemOutput); } }