public function testGetSuccessfulAgents() { $otherAgentName = 'drinkMe'; $otherAgentId = 603; $successfulAgents = array($this->agentName => array(new AgentRef($this->agentId, $this->agentName, 'a0815'), new AgentRef($this->agentId - 1, $this->agentName, 'beforeA0815')), $otherAgentName => array(new AgentRef($otherAgentId, $otherAgentName, 'coffee'))); $this->pretendScanAgentStatus($successfulAgents); $expected = array_merge($successfulAgents[$this->agentName], $successfulAgents[$otherAgentName]); $ids = $this->scanJobProxy->getSuccessfulAgents(); assertThat($ids, is(equalTo($expected))); }