diff --git a/src/Terminus.php b/src/Terminus.php index d9770d9f9..9fed32590 100644 --- a/src/Terminus.php +++ b/src/Terminus.php @@ -444,6 +444,9 @@ private function addBuiltInCommandsAndHooks() 'Pantheon\\Terminus\\Commands\\Workflow\\WaitCommand', 'Pantheon\\Terminus\\Commands\\Workflow\\WatchCommand' ]; + + // Add in any static additions not handled by 'composer update-class-lists' + $this->commands[] = 'Consolidation\\Filter\\Hooks\\FilterHooks'; } /** diff --git a/tests/Functional/SiteCommandsTest.php b/tests/Functional/SiteCommandsTest.php index 1d0d4303c..e4eaaac09 100644 --- a/tests/Functional/SiteCommandsTest.php +++ b/tests/Functional/SiteCommandsTest.php @@ -60,6 +60,19 @@ public function testSiteOrgListCommand() $this->assertGreaterThan(0, count($orgList)); } + /** + * @test + * @covers \Consolidation\Filter\Hooks\FilterHooks + * + * @group site + * @group short + */ + public function testSiteListFilterOption() + { + $siteListHelpOutput = $this->terminus('help site:list'); + $this->assertStringContainsString('--filter[=FILTER]', $siteListHelpOutput); + } + /** * Test site:create command. *