Skip to content

Commit

Permalink
test(phpunit): fix suffix deprecation (#1320)
Browse files Browse the repository at this point in the history
> Abstract test case classes with "Test" suffix are deprecated (GraphQL\Tests\Type\TypeLoaderTest)
  • Loading branch information
simPod committed Feb 21, 2023
1 parent 19b4415 commit 9e42d86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/Type/EagerTypeLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* @see LazyTypeLoaderTest
*/
final class EagerTypeLoaderTest extends TypeLoaderTest
final class EagerTypeLoaderTest extends TypeLoaderTestCaseBase
{
private InterfaceType $node;

Expand Down
5 changes: 1 addition & 4 deletions tests/Type/LazyTypeLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
use GraphQL\Type\Definition\Type;
use GraphQL\Type\Schema;

/**
* @see TypeLoaderTest
*/
final class LazyTypeLoaderTest extends TypeLoaderTest
final class LazyTypeLoaderTest extends TypeLoaderTestCaseBase
{
/** @var callable(): InterfaceType */
private $node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use GraphQL\Type\Definition\Type;
use GraphQL\Type\Schema;

abstract class TypeLoaderTest extends TestCaseBase
abstract class TypeLoaderTestCaseBase extends TestCaseBase
{
use ArraySubsetAsserts;

Expand Down

0 comments on commit 9e42d86

Please sign in to comment.