Phue\Test\Command\GetGroupsTest::testFoundNoGroups PHP Метод

testFoundNoGroups() публичный Метод

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