ImageTest::uploadImage PHP Method

uploadImage() protected method

Uploads an image with the given name.
protected uploadImage ( $name, integer $uploadedTo ) : string
$name
$uploadedTo integer
return string
    protected function uploadImage($name, $uploadedTo = 0)
    {
        $file = $this->getTestImage($name);
        $this->call('POST', '/images/gallery/upload', ['uploaded_to' => $uploadedTo], [], ['file' => $file], []);
        return $this->getTestImagePath('gallery', $name);
    }