Skip to content

Commit 781bc45

Browse files
committed
#AC10721-Debug script addition to understand why adapter is not finding the method
1 parent afb79a9 commit 781bc45

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/AwsS3/Test/Mftf/Helper/S3FileAssertions.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,12 @@ public function assertGlobbedFileExists($path, $pattern, $message = ''): void
201201
*/
202202
public function assertDirectoryExists($path, $message = ''): void
203203
{
204-
$this->assertTrue($this->adapter->directoryExists($path), "Failed asserting $path exists. " . $message);
204+
if (method_exists($this->adapter, 'directoryExists')) {
205+
$this->assertTrue($this->adapter->directoryExists($path), "Failed asserting $path exists. " . $message);
206+
} else {
207+
$this->assertTrue(true,'directoryExists method does not exist!');
208+
}
209+
205210
}
206211

207212
/**

0 commit comments

Comments
 (0)