From 564c0fccc63f544522192e7f2f862573ccbda3de Mon Sep 17 00:00:00 2001 From: "Michael K. Squires" Date: Sun, 28 Dec 2014 19:04:12 -0800 Subject: [PATCH] GitHub #89 - Fix test --- tests/Phue/Test/Command/CreateRuleTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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',