public function setUp()
{
parent::setUp();
$this->cfnClientMock = $this->getMock('\\Aws\\CloudFormation\\CloudFormationClient', ['createChangeSet', 'UpdateStack', 'DescribeChangeSet', 'ValidateTemplate'], [], '', false);
$this->cfnClientMock->method('createChangeSet')->willReturn(new \Aws\Result(['id' => 'foo_id']));
$this->profileManagerMock = $this->getMock('\\StackFormation\\Profile\\Manager', [], [], '', false);
$this->profileManagerMock->method('getClient')->willReturn($this->cfnClientMock);
$this->profileManagerMock->method('getStackFactory')->willReturnCallback(function () {
$stackFactoryMock = $this->getMock('\\StackFormation\\StackFactory', [], [], '', false);
$stackFactoryMock->method('getStackStatus')->willReturn('CREATE_COMPLETE');
return $stackFactoryMock;
});
$this->blueprintMock = $this->getMock('\\StackFormation\\Blueprint', [], [], '', false);
$this->blueprintMock->method('getBlueprintReference')->willReturn('FOO');
$this->blueprintMock->method('getTags')->willReturn([]);
$this->blueprintMock->method('getBeforeScript')->willReturn([]);
}