Closed pamoller closed 2 years ago
See https://github.com/Codeception/Codeception/issues/6546
Evaluate Xpath and compare their values. Youn can also use the xpath count function like checking id is unique:
$this->module->seeResponseJsonXpathEvaluatesTo('count(//id) = 1', true);
If count returns 1.0, then it looks like a good idea to use assertEquals
1.0
assertEquals
In the module too.
Released as 3.2.0 https://github.com/Codeception/module-rest/releases/tag/3.2.0
See https://github.com/Codeception/Codeception/issues/6546
Evaluate Xpath and compare their values. Youn can also use the xpath count function like checking id is unique: