-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 release
Description
An integration test is failing when Magento is built via composer (not when clones from github).
The problem seems to be that basePath is calculated as the app directory but the actual code is in vendor so XML configuration is not found and an uncatched exception is thrown at
magento2/dev/tests/integration/testsuite/Magento/Ui/Component/ConfigurationTest.php
Line 87 in 276c690
$content = $this->appDir->readFile($this->appDir->getRelativePath($file->getFullPath())); |
Preconditions
- Build magento via command line as instructed in the devdocs
- Set up integration tests as instructed in the devdocs
Steps to reproduce
php vendor/bin/phpunit -c dev/tests/integration --filter ConfigurationTest
Expected result
- Test passes
Actual result
PHPUnit 6.2.4 by Sebastian Bergmann and contributors.
E 1 / 1 (100%)
Time: 5.17 seconds, Memory: 218.59MB
There was 1 error:
1) Magento\Ui\Component\ConfigurationTest::testConfiguration
Magento\Framework\Exception\FileSystemException: Cannot read contents from file "/var/www/html/app/var/www/html/vendor/magento/module-email/view/adminhtml/ui_component/design_config_form.xml"
/var/www/html/vendor/magento/framework/Filesystem/Driver/File.php:149
/var/www/html/vendor/magento/framework/Filesystem/Directory/Read.php:214
/var/www/html/dev/tests/integration/testsuite/Magento/Ui/Component/ConfigurationTest.php:87
/var/www/html/vendor/phpunit/phpunit/phpunit:53
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
=== Memory Usage System Stats ===
Memory usage (OS): 245.58M (113.69% of 216.00M reported by PHP)
Estimated memory leak: 29.58M (12.04% of used memory)
Metadata
Metadata
Assignees
Labels
Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 release