Skip to content

Commit eee6c14

Browse files
committed
Merge branch '2.2'
2 parents f018107 + 51c45f1 commit eee6c14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/Codeception/Module/PhpBrowserRestTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ public function testSeeResponseContainsJsonFailsGracefullyWhenJsonResultIsNotArr
134134
$this->module->seeResponseContainsJson(array('id' => 1));
135135
}
136136

137+
public function testDontSeeResponseJsonMatchesJsonPathPassesWhenJsonResultIsNotArray()
138+
{
139+
$this->setStubResponse(json_encode('no_status'));
140+
$this->module->dontSeeResponseJsonMatchesJsonPath('$.error');
141+
}
142+
137143
public function testDontSeeInJson()
138144
{
139145
$this->setStubResponse('{"ticket": {"title": "Bug should be fixed", "user": {"name": "Davert"}}}');

0 commit comments

Comments
 (0)