Skip to content

Commit 5ced720

Browse files
BUGS-8304: Restore filter hooks (#2607)
* Failing test: ensure that help output for site:list command contains --filter option. * Restore filter hooks.
1 parent 510a77a commit 5ced720

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/Terminus.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ private function addBuiltInCommandsAndHooks()
444444
'Pantheon\\Terminus\\Commands\\Workflow\\WaitCommand',
445445
'Pantheon\\Terminus\\Commands\\Workflow\\WatchCommand'
446446
];
447+
448+
// Add in any static additions not handled by 'composer update-class-lists'
449+
$this->commands[] = 'Consolidation\\Filter\\Hooks\\FilterHooks';
447450
}
448451

449452
/**

tests/Functional/SiteCommandsTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ public function testSiteOrgListCommand()
6060
$this->assertGreaterThan(0, count($orgList));
6161
}
6262

63+
/**
64+
* @test
65+
* @covers \Consolidation\Filter\Hooks\FilterHooks
66+
*
67+
* @group site
68+
* @group short
69+
*/
70+
public function testSiteListFilterOption()
71+
{
72+
$siteListHelpOutput = $this->terminus('help site:list');
73+
$this->assertStringContainsString('--filter[=FILTER]', $siteListHelpOutput);
74+
}
75+
6376
/**
6477
* Test site:create command.
6578
*

0 commit comments

Comments
 (0)