diff --git a/tests/Phue/Test/Command/CreateRuleTest.php b/tests/Phue/Test/Command/CreateRuleTest.php index 3c21038..03c59ca 100644 --- a/tests/Phue/Test/Command/CreateRuleTest.php +++ b/tests/Phue/Test/Command/CreateRuleTest.php @@ -101,7 +101,9 @@ public function testSend() ->shouldReceive('getTransport->sendRequest') ->andReturn((object) ['id' => '5']); - $command = new CreateRule('test'); + $command = (new CreateRule('test')) + ->addCondition(Mockery::mock('\Phue\Condition')->makePartial()) + ->addAction(Mockery::mock('\Phue\Command\ActionableInterface')->shouldIgnoreMissing()); $this->assertEquals( '5',