@@ -16,11 +16,11 @@ class EntitiesTest extends TestCase
1616
1717 public function testCreatingEntityType (): void
1818 {
19- $ userTypeKeyFields = ['id ' , 'email ' ];
19+ $ expectedKeyFields = ['id ' , 'email ' ];
2020
2121 $ userType = new EntityObjectType ([
2222 'name ' => 'User ' ,
23- 'keyFields ' => $ userTypeKeyFields ,
23+ 'keyFields ' => $ expectedKeyFields ,
2424 'fields ' => [
2525 'id ' => ['type ' => Type::int ()],
2626 'email ' => ['type ' => Type::string ()],
@@ -29,17 +29,17 @@ public function testCreatingEntityType(): void
2929 ],
3030 ]);
3131
32- $ this ->assertEqualsCanonicalizing ($ userType ->getKeyFields (), $ userTypeKeyFields );
32+ $ this ->assertEqualsCanonicalizing ($ expectedKeyFields , $ userType ->getKeyFields ());
3333 $ this ->assertMatchesSnapshot ($ userType ->config );
3434 }
3535
3636 public function testCreatingEntityTypeWithCallable (): void
3737 {
38- $ userTypeKeyFields = ['id ' , 'email ' ];
38+ $ expectedKeyFields = ['id ' , 'email ' ];
3939
4040 $ userType = new EntityObjectType ([
4141 'name ' => 'User ' ,
42- 'keyFields ' => $ userTypeKeyFields ,
42+ 'keyFields ' => $ expectedKeyFields ,
4343 'fields ' => function () {
4444 return [
4545 'id ' => ['type ' => Type::int ()],
@@ -50,7 +50,7 @@ public function testCreatingEntityTypeWithCallable(): void
5050 },
5151 ]);
5252
53- $ this ->assertEqualsCanonicalizing ($ userType ->getKeyFields (), $ userTypeKeyFields );
53+ $ this ->assertEqualsCanonicalizing ($ expectedKeyFields , $ userType ->getKeyFields ());
5454 $ this ->assertMatchesSnapshot ($ userType ->config );
5555 }
5656
@@ -85,18 +85,18 @@ public function testResolvingEntityReference(): void
8585
8686 public function testCreatingEntityRefType (): void
8787 {
88- $ userTypeKeyFields = ['id ' , 'email ' ];
88+ $ expectedKeyFields = ['id ' , 'email ' ];
8989
9090 $ userType = new EntityRefObjectType ([
9191 'name ' => 'User ' ,
92- 'keyFields ' => $ userTypeKeyFields ,
92+ 'keyFields ' => $ expectedKeyFields ,
9393 'fields ' => [
9494 'id ' => ['type ' => Type::int ()],
9595 'email ' => ['type ' => Type::string ()],
9696 ],
9797 ]);
9898
99- $ this ->assertEqualsCanonicalizing ($ userType ->getKeyFields (), $ userTypeKeyFields );
99+ $ this ->assertEqualsCanonicalizing ($ expectedKeyFields , $ userType ->getKeyFields ());
100100 $ this ->assertMatchesSnapshot ($ userType ->config );
101101 }
102102}
0 commit comments