Skip to content

Commit

Permalink
remove unwanted step definition
Browse files Browse the repository at this point in the history
  • Loading branch information
SwikritiT committed Sep 14, 2023
1 parent 2f182a0 commit f26d03e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions tests/acceptance/features/bootstrap/SearchContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,30 +170,6 @@ public function before(BeforeScenarioScope $scope): void {
$this->featureContext = $environment->getContext('FeatureContext');
}

/**
* @Then the search result by tags for user :user should contain these entries:
*
* @param string|null $user
* @param TableNode $expectedEntries
*
* @return void
* @throws Exception
*/
public function theSearchResultByTagsForUserShouldContainTheseEntries(
?string $user,
TableNode $expectedEntries
): void {
$user = $this->featureContext->getActualUsername($user);
$this->featureContext->verifyTableNodeColumnsCount($expectedEntries, 1);
$expectedEntries = $expectedEntries->getRows();
$expectedEntriesArray = [];
$responseResourcesArray = $this->featureContext->findEntryFromReportResponse($user);
foreach ($expectedEntries as $item) {
$expectedEntriesArray[] = $item[0];
}
Assert::assertEqualsCanonicalizing($expectedEntriesArray, $responseResourcesArray);
}

/**
* @Then /^the search result should contain these (?:files|entries) with highlight on keyword "([^"]*)"/
*
Expand Down Expand Up @@ -223,7 +199,6 @@ public function theSearchResultShouldContainEntriesWithHighlight(

// Remove any leading/trailing whitespace for comparison
$actualContent = trim($actualContent);
var_dump($actualContent);
Assert::assertEquals(
$expectedContent,
$actualContent,
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -5391,7 +5391,7 @@ public function findEntryFromSearchResponse(
}
if ($searchForHighlightString) {
$actualHighlightString = $item->xpath("d:propstat//oc:highlights");
$results[$resourcePath] = (string)$actualHighlightString[0][0];
$results[$resourcePath] = (string)$actualHighlightString[0];
} else {
$results[] = $resourcePath;
}
Expand Down

0 comments on commit f26d03e

Please sign in to comment.