public function MediaBrowserContext::setFilePath in Lightning Media 8
Sets the path to any uploadable files.
@BeforeScenario
File
- tests/
contexts/ MediaBrowserContext.behat.inc, line 20
Class
- MediaBrowserContext
- Contains step definitions for interacting with Lightning's media browser.
Namespace
Acquia\LightningExtension\ContextCode
public function setFilePath() {
/** @var MinkContext $mink_context */
$mink_context = $this
->getContext(MinkContext::class);
$path = $mink_context
->getMinkParameter('files_path');
if (empty($path)) {
$mink_context
->setMinkParameter('files_path', __DIR__ . '/../files');
}
}