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')); }