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()); + } }