Skip to content

Commit a764f4d

Browse files
committed
B2B-1861: [Test] s3 - Refactor WebAPI tests to add support for Remote Storage
1 parent 1807f70 commit a764f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementCustomAttributesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ protected function verifyImageAttribute($customAttributeArray, $expectedFileName
186186
$this->assertStringContainsString($expectedFileName, $customAttribute[AttributeValue::VALUE]);
187187
$mediaDirectory = $this->fileSystem->getDirectoryWrite(DirectoryList::MEDIA);
188188
$customerMediaPath = $mediaDirectory->getAbsolutePath(CustomerMetadataInterface::ENTITY_TYPE_CUSTOMER);
189-
$imageAttributeFound = file_exists($customerMediaPath . $customAttribute[AttributeValue::VALUE]);
189+
$imageAttributeFound = $mediaDirectory->getDriver()->isExists($customerMediaPath . $customAttribute[AttributeValue::VALUE]);
190190
$this->assertTrue($imageAttributeFound, 'Expected file was not created');
191191
}
192192
}

0 commit comments

Comments
 (0)