Sanpi\Behatch\Context\SystemContext::putFileIntoField PHP Method

putFileIntoField() public method

Uploads a file using the specified input field
public putFileIntoField ( $file, $field )
    public function putFileIntoField($file, $field)
    {
        $path = $this->root . DIRECTORY_SEPARATOR . $file;
        return [new Step\When("I attach the file '{$path}' to '{$field}'")];
    }