Youshido\Tests\Library\Relay\NodeFieldTest::testMethods PHP Method

testMethods() public method

public testMethods ( )
    public function testMethods()
    {
        $fetcher = new CallableFetcher(function () {
        }, function () {
        });
        $field = new NodeField($fetcher);
        $this->assertEquals('Fetches an object given its ID', $field->getDescription());
        $this->assertEquals('node', $field->getName());
        $this->assertEquals($fetcher, $field->getType()->getFetcher());
    }
NodeFieldTest