Youshido\Tests\Library\Relay\ConnectionTest::testPageInfoType PHP Method

testPageInfoType() public method

public testPageInfoType ( )
    public function testPageInfoType()
    {
        $type = Connection::getPageInfoType();
        $this->assertEquals('PageInfo', $type->getName());
        $this->assertEquals('Information about pagination in a connection.', $type->getDescription());
        $this->assertTrue($type->hasField('hasNextPage'));
        $this->assertTrue($type->hasField('hasPreviousPage'));
        $this->assertTrue($type->hasField('startCursor'));
        $this->assertTrue($type->hasField('endCursor'));
    }