Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

Commit d25b07f

Browse files
author
Miguel
committed
[Behat] Remove not used method from platformUI context
1 parent e1d0849 commit d25b07f

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Features/Context/PlatformUI.php

-22
Original file line numberDiff line numberDiff line change
@@ -449,32 +449,10 @@ protected function closeEditView()
449449
}
450450
}
451451
/**
452-
* Attaches a file to a input field on the HTML.
453452
*
454-
* @param string $file file name relative to mink definitions
455-
* @param string $selector CSS file upload element selector
456453
*/
457-
protected function attachFile($fileName, $selector)
458454
{
459-
if ($this->getMinkParameter('files_path')) {
460-
$fullPath = rtrim(
461-
realpath(
462-
$this->getMinkParameter('files_path')
463-
),
464-
DIRECTORY_SEPARATOR
465-
) . DIRECTORY_SEPARATOR . $fileName;
466-
467-
if (is_file($fullPath)) {
468-
$fileInput = 'input[type="file"]' . $selector;
469-
$field = $this->getSession()->getPage()->find('css', $fileInput);
470-
471-
if (null === $field) {
472-
throw new Exception("File input $selector is not found");
473-
}
474-
$field->attachFile($fullPath);
475455
}
476-
} else {
477-
throw new Exception("File $fileName is not found at the given location: $fullPath");
478456
}
479457
}
480458
}

0 commit comments

Comments
 (0)