Skip to content

Commit 5718369

Browse files
committed
MAGETWO-51580: Misleading error messages during installation
- fixing functional tests
1 parent c40ae54 commit 5718369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessfulReadinessCheck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AssertSuccessfulReadinessCheck extends AbstractConstraint
2727
/**
2828
* File permission message.
2929
*/
30-
const FILE_PERMISSION_REGEXP = '/You meet (\d+) out of \1 writable file permission requirements\./';
30+
const FILE_PERMISSION_REGEXP = 'File permissions does not meet requirements.';
3131

3232
/**
3333
* Assert that PHP Version, PHP Extensions and File Permission are ok.
@@ -47,7 +47,7 @@ public function processAssert(Install $installPage)
4747
$installPage->getReadinessBlock()->getPhpExtensionsCheck(),
4848
'PHP extensions missed.'
4949
);
50-
\PHPUnit_Framework_Assert::assertRegExp(
50+
\PHPUnit_Framework_Assert::assertContains(
5151
self::FILE_PERMISSION_REGEXP,
5252
$installPage->getReadinessBlock()->getFilePermissionCheck(),
5353
'File permissions does not meet requirements.'

0 commit comments

Comments
 (0)