@@ -38,7 +38,7 @@ public function testExecuteNonExistingSearchKey() : void
38
38
->setPostValue ('limit ' , 50 );
39
39
$ this ->dispatch ('backend/catalog/product/search ' );
40
40
$ responseBody = $ this ->getResponse ()->getBody ();
41
- $ jsonResponse = json_decode ($ responseBody );
41
+ $ jsonResponse = json_decode ($ responseBody, true );
42
42
$ this ->assertEmpty ($ jsonResponse ['options ' ]);
43
43
}
44
44
@@ -58,7 +58,7 @@ public function testExecuteNotVisibleIndividuallyProducts() : void
58
58
->setPostValue ('limit ' , 50 );
59
59
$ this ->dispatch ('backend/catalog/product/search ' );
60
60
$ responseBody = $ this ->getResponse ()->getBody ();
61
- $ jsonResponse = json_decode ($ responseBody );
61
+ $ jsonResponse = json_decode ($ responseBody, true );
62
62
$ this ->assertEquals (1 , $ jsonResponse ['total ' ]);
63
63
$ this ->assertCount (1 , $ jsonResponse ['options ' ]);
64
64
}
@@ -74,7 +74,7 @@ public function testExecuteEnabledAndDisabledProducts() : void
74
74
->setPostValue ('limit ' , 50 );
75
75
$ this ->dispatch ('backend/catalog/product/search ' );
76
76
$ responseBody = $ this ->getResponse ()->getBody ();
77
- $ jsonResponse = json_decode ($ responseBody );
77
+ $ jsonResponse = json_decode ($ responseBody, true );
78
78
$ this ->assertEquals (7 , $ jsonResponse ['total ' ]);
79
79
$ this ->assertCount (7 , $ jsonResponse ['options ' ]);
80
80
}
0 commit comments