public function testFailingChangeSet() { $this->cfnClientMock->method('describeChangeSet')->willReturn(new \Aws\Result(['Status' => 'FAILED', 'StatusReason' => 'FOO REASON'])); $this->setExpectedException('Exception', 'FOO REASON'); $blueprintAction = new \StackFormation\BlueprintAction($this->blueprintMock, $this->profileManagerMock); $blueprintAction->getChangeSet(); }
protected function executeWithBlueprint(\StackFormation\Blueprint $blueprint, InputInterface $input, OutputInterface $output) { $blueprintAction = new \StackFormation\BlueprintAction($blueprint, $this->profileManager, $output); $changeSetResult = $blueprintAction->getChangeSet(); $table = new \StackFormation\Helper\ChangeSetTable($output); $table->render($changeSetResult); }