From 2f6a179e8129cd171cd1ca542d05b9faa5fa22d8 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Thu, 21 Nov 2024 16:04:42 -0800 Subject: [PATCH] kill mutant --- tests/phpunit/src/Commands/Self/MakeDocsCommandTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/phpunit/src/Commands/Self/MakeDocsCommandTest.php b/tests/phpunit/src/Commands/Self/MakeDocsCommandTest.php index 6ae7a534b..1ae603ef9 100644 --- a/tests/phpunit/src/Commands/Self/MakeDocsCommandTest.php +++ b/tests/phpunit/src/Commands/Self/MakeDocsCommandTest.php @@ -7,6 +7,7 @@ use Acquia\Cli\Command\CommandBase; use Acquia\Cli\Command\Self\MakeDocsCommand; use Acquia\Cli\Tests\CommandTestBase; +use org\bovigo\vfs\vfsStream; /** * @property \Acquia\Cli\Command\Self\MakeDocsCommand $command @@ -26,4 +27,11 @@ public function testMakeDocsCommand(): void $this->assertStringContainsString('============', $output); $this->assertStringContainsString('- `help`_', $output); } + + public function testMakeDocsCommandDump(): void + { + $vfs = vfsStream::setup('root'); + $this->executeCommand(['--dump' => $vfs->url()]); + $this->assertStringContainsString('The completion command dumps', $vfs->getChild('completion.json')->getContent()); + } }