Phue\Test\Command\GetUsersTest::testFoundNoUsers PHP Method

testFoundNoUsers() public method

Test: Found no users
public testFoundNoUsers ( )
    public function testFoundNoUsers()
    {
        // Stub transport's sendRequest method
        $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/config"))->will($this->returnValue(new \stdClass()));
        // Send command and get response
        $response = $this->getUsers->send($this->mockClient);
        // Ensure we have an empty array
        $this->assertInternalType('array', $response);
        $this->assertEmpty($response);
    }