public function testFireWithMultipleHostCallsInfoSameNumberOfTimes() { list($arguments, $options) = $this->createArgumentsAndOptions(); $mockConnection = m::mock('Illuminate\\Remote\\Connection'); $mockConnection->shouldReceive('run')->withAnyArgs()->twice(); $this->setMockAwsExpectations($arguments, array('127.0.0.1', '127.0.0.2')); $this->mockConnectionFactory->shouldReceive('createConnection')->withAnyArgs()->andReturn($mockConnection)->twice(); $this->controller->fire($arguments, $options); }
public function fire() { $controller = new ElasticBeanstalkTailCommandController($this->app, $this->aws, $this, new ConnectionFactory()); $controller->fire($this->argument(), $this->option()); }