[test-only] apiTest. banned password list (#7339)
* apiTest. banned password list * fix after review
This commit is contained in:
@@ -25,6 +25,7 @@ use Behat\Gherkin\Node\TableNode;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use TestHelpers\OcisConfigHelper;
|
||||
use PHPUnit\Framework\Assert;
|
||||
use TestHelpers\UploadHelper;
|
||||
|
||||
/**
|
||||
* steps needed to re-configure oCIS server
|
||||
@@ -75,6 +76,21 @@ class OcisConfigContext implements Context {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given the config :configVariable has been set to path :path
|
||||
*
|
||||
* @param string $configVariable
|
||||
* @param string $path
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function theConfigHasBeenSetPathTo(string $configVariable, string $path): void {
|
||||
$path = UploadHelper::getUploadFilesDir($path);
|
||||
|
||||
$this->theConfigHasBeenSetTo($configVariable, $path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given the following configs have been set:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user