Phue\Test\Command\StartLightScanTest::testSend PHP Method

testSend() public method

Test: Send start light scan command
public testSend ( )
    public function testSend()
    {
        // Stub transport's sendRequest method
        $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/lights"), $this->equalTo('POST'))->will($this->returnValue('success!'));
        // $this->assertEquals(
        // 'success!',
        // (new StartLightScan)->send($this->mockClient)
        // );
        $lightscan = new StartLightScan();
        $this->assertEquals('success!', $lightscan->send($this->mockClient));
    }
StartLightScanTest