mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-22 19:19:18 -05:00
kql search tests (#7248)
Co-authored-by: Florian Schade <f.schade@icloud.com>
This commit is contained in:
@@ -169,28 +169,4 @@ class SearchContext implements Context {
|
||||
// Get all the contexts you need in this context
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user