@@ -1009,6 +1009,7 @@ public function testCategoryListPaginationLimitsNotAppliedToChildren()
1009
1009
$ response = $ this ->graphQlQuery ($ this ->getQueryForPage (1 ));
1010
1010
$ this ->assertArrayNotHasKey ('errors ' , $ response );
1011
1011
$ this ->assertArrayHasKey ('categoryList ' , $ response );
1012
+ $ this ->assertCount (1 , $ response ['categoryList ' ]);
1012
1013
$ baseCategory = $ response ['categoryList ' ][0 ];
1013
1014
$ this ->assertEquals ('Category 1 ' , $ baseCategory ['name ' ]);
1014
1015
$ this ->assertCount (2 , $ baseCategory ['children ' ]);
@@ -1019,13 +1020,15 @@ public function testCategoryListPaginationLimitsNotAppliedToChildren()
1019
1020
$ response = $ this ->graphQlQuery ($ this ->getQueryForPage (2 ));
1020
1021
$ this ->assertArrayNotHasKey ('errors ' , $ response );
1021
1022
$ this ->assertArrayHasKey ('categoryList ' , $ response );
1023
+ $ this ->assertCount (1 , $ response ['categoryList ' ]);
1022
1024
$ baseCategory = $ response ['categoryList ' ][0 ];
1023
1025
$ this ->assertEquals ('Category 2 ' , $ baseCategory ['name ' ]);
1024
1026
$ this ->assertCount (0 , $ baseCategory ['children ' ]);
1025
1027
1026
1028
$ response = $ this ->graphQlQuery ($ this ->getQueryForPage (3 ));
1027
1029
$ this ->assertArrayNotHasKey ('errors ' , $ response );
1028
1030
$ this ->assertArrayHasKey ('categoryList ' , $ response );
1031
+ $ this ->assertCount (1 , $ response ['categoryList ' ]);
1029
1032
$ baseCategory = $ response ['categoryList ' ][0 ];
1030
1033
$ this ->assertEquals ('Movable ' , $ baseCategory ['name ' ]);
1031
1034
$ this ->assertCount (0 , $ baseCategory ['children ' ]);
0 commit comments