Phue\Test\Command\SetGroupStateTest::testGetActionableParams PHP Метод

testGetActionableParams() публичный Метод

Test: Get actionable params
    public function testGetActionableParams()
    {
        // Build command
        $setGroupStateCmd = new SetGroupState($this->mockGroup);
        // Change alert
        $setGroupStateCmd->alert('select');
        // Ensure schedulable params are expected
        $this->assertEquals(array('address' => "/groups/{$this->mockGroup->getId()}/action", 'method' => 'PUT', 'body' => (object) array('alert' => 'select')), $setGroupStateCmd->getActionableParams($this->mockClient));
    }