There was an error while loading. Please reload this page.
2 parents f018107 + 51c45f1 commit eee6c14Copy full SHA for eee6c14
tests/unit/Codeception/Module/PhpBrowserRestTest.php
@@ -134,6 +134,12 @@ public function testSeeResponseContainsJsonFailsGracefullyWhenJsonResultIsNotArr
134
$this->module->seeResponseContainsJson(array('id' => 1));
135
}
136
137
+ public function testDontSeeResponseJsonMatchesJsonPathPassesWhenJsonResultIsNotArray()
138
+ {
139
+ $this->setStubResponse(json_encode('no_status'));
140
+ $this->module->dontSeeResponseJsonMatchesJsonPath('$.error');
141
+ }
142
+
143
public function testDontSeeInJson()
144
{
145
$this->setStubResponse('{"ticket": {"title": "Bug should be fixed", "user": {"name": "Davert"}}}');
0 commit comments