getMock( 'Magento\Customer\Model\Metadata\Form\Image', ['_isUploadedFile'], [ $this->localeMock, $this->loggerMock, $this->attributeMetadataMock, $this->localeResolverMock, $value, 0, $isAjax, $this->urlEncode, $this->fileValidatorMock, $this->fileSystemMock, $this->uploaderFactoryMock ] ); return $imageForm; } public function validateValueToUploadDataProvider() { $imagePath = __DIR__ . '/_files/logo.gif'; return [ [ ['"realFileName" is not a valid file.'], ['tmp_name' => 'tmp_file', 'name' => 'realFileName'], ['valid' => false], ], [true, ['tmp_name' => $imagePath, 'name' => 'logo.gif']] ]; } }