Youshido\Tests\Library\Relay\GlobalIdFieldTest::testSimpleMethods PHP Method

testSimpleMethods() public method

public testSimpleMethods ( )
    public function testSimpleMethods()
    {
        $typeName = 'user';
        $field = new GlobalIdField($typeName);
        $this->assertEquals('id', $field->getName());
        $this->assertEquals('The ID of an object', $field->getDescription());
        $this->assertEquals(new NonNullType(new IdType()), $field->getType());
    }
GlobalIdFieldTest