/** * Test: Send * * @covers \Phue\Command\UpdateRule::send */ public function testSend() { // Mock client $mockClient = Mockery::mock('\\Phue\\Client', array('getUsername' => 'abcdefabcdef01234567890123456789'))->makePartial(); // Mock client commands $mockClient->shouldReceive('getTransport->sendRequest'); $rule = new UpdateRule('5'); $command = $rule->addCondition(Mockery::mock('\\Phue\\Condition')->makePartial())->addAction(Mockery::mock('\\Phue\\Command\\ActionableInterface')->shouldIgnoreMissing())->send($mockClient); }