add test to PROPFIND folder

This commit is contained in:
Saw-jan
2023-01-06 11:47:35 +05:45
parent d2ebb10339
commit aae418c2ab
2 changed files with 38 additions and 2 deletions
@@ -644,6 +644,27 @@ class WebDavPropertiesContext implements Context {
);
}
/**
* @Then as user :user the value of the item :xpath of path :path in the response should be :value
*
* @param string $user
* @param string $xpath
* @param string $path
* @param string $expectedValue
*
* @return void
* @throws Exception
*/
public function valueOfItemOfPathShouldBe(string $user, string $xpath, string $path, string $expectedValue):void {
$path = $this->featureContext->substituteInLineCodes($path, $user);
$fullXpath = "//d:response/d:href[.='$path']/following-sibling::d:propstat$xpath";
$this->assertValueOfItemInResponseAboutUserIs(
$fullXpath,
null,
$expectedValue
);
}
/**
* @Then the value of the item :xpath in the response about user :user should be :value
*