diff --git a/tests/unit/GraphQL/BuilderTest.php b/tests/unit/GraphQL/BuilderTest.php index 6249ba911d..2e94041ada 100644 --- a/tests/unit/GraphQL/BuilderTest.php +++ b/tests/unit/GraphQL/BuilderTest.php @@ -1,15 +1,11 @@ response = new Response(new SwooleResponse()); - TypeRegistry::init($this->response->getModels()); + TypeMapper::init($this->response->getModels()); } /** @@ -27,6 +23,7 @@ class BuilderTest extends TestCase public function testCreateTypeMapping() { $model = $this->response->getModel(Response::MODEL_COLLECTION); - $typeMapping = TypeRegistry::fromModel($model->getType()); + $type = TypeMapper::fromResponseModel(\ucfirst($model->getType())); + $this->assertEquals('Collection', $type->name); } }