changing given step of creating link share in feature file (#9019)

This commit is contained in:
Sabin Panta
2024-05-03 09:36:14 +05:45
committed by GitHub
parent 947c56196c
commit db281c4257
3 changed files with 21 additions and 4 deletions
+10 -2
View File
@@ -5464,7 +5464,11 @@ trait WebDav {
* @throws Exception
*/
public function theLastPublicDavResponseShouldContainTheseNodes(TableNode $table):void {
$user = $this->getLastCreatedPublicShareToken();
if ($this->isUsingSharingNG()) {
$user = $this->shareNgGetLastCreatedLinkShareToken();
} else {
$user = $this->getLastCreatedPublicShareToken();
}
$this->verifyTableNodeColumns($table, ["name"]);
$type = $this->usingOldDavPath ? "public-files" : "public-files-new";
foreach ($table->getHash() as $row) {
@@ -5502,7 +5506,11 @@ trait WebDav {
* @throws Exception
*/
public function thePublicListsTheResourcesInTheLastCreatedPublicLinkWithDepthUsingTheWebdavApi(string $depth):void {
$user = $this->getLastCreatedPublicShareToken();
if ($this->isUsingSharingNG()) {
$user = $this->shareNgGetLastCreatedLinkShareToken();
} else {
$user = $this->getLastCreatedPublicShareToken();
}
$response = $this->listFolder(
$user,
'/',