Get actionable params
public getActionableParams ( |
||
$client | Phue Client | |
return | array | Key/value pairs of params |
/** * Test: Get actionable params * * @covers \Phue\Command\SetGroupState::getActionableParams */ public function testGetActionableParams() { // Build command $setGroupStateCmd = new SetGroupState($this->mockGroup); // Change alert $setGroupStateCmd->alert('select'); // Ensure schedulable params are expected $this->assertEquals(['address' => "/groups/{$this->mockGroup->getId()}/action", 'method' => 'PUT', 'body' => (object) ['alert' => 'select']], $setGroupStateCmd->getActionableParams($this->mockClient)); }