Skip to content

Commit 718b1cb

Browse files
jorritmghoneimy
authored andcommitted
Remove usage of removed EmptySelectionSetException
1 parent aeee284 commit 718b1cb

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/SchemaObject/QueryObject.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace GraphQL\SchemaObject;
44

5-
use GraphQL\Exception\EmptySelectionSetException;
65
use GraphQL\Query;
76
use GraphQL\QueryBuilder\AbstractQueryBuilder;
87

@@ -68,4 +67,4 @@ public function getQuery(): Query
6867
{
6968
return parent::getQuery();
7069
}
71-
}
70+
}

tests/QueryObjectTest.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace GraphQL\Tests;
44

5-
use GraphQL\Exception\EmptySelectionSetException;
65
use GraphQL\SchemaObject\ArgumentsObject;
76
use GraphQL\SchemaObject\InputObject;
87
use GraphQL\SchemaObject\QueryObject;
@@ -55,16 +54,6 @@ public function testConstruct()
5554
(string) $object->getQuery());
5655
}
5756

58-
/**
59-
* @covers \GraphQL\SchemaObject\QueryObject::__construct
60-
* @covers \GraphQL\Exception\EmptySelectionSetException
61-
*/
62-
public function testEmptySelectionSet()
63-
{
64-
$this->expectException(EmptySelectionSetException::class);
65-
$this->queryObject->getQuery();
66-
}
67-
6857
/**
6958
* @covers \GraphQL\SchemaObject\QueryObject::selectField
7059
* @covers \GraphQL\SchemaObject\QueryObject::getQuery

0 commit comments

Comments
 (0)