Details
-
Bug
-
Resolution: Fixed
-
High
-
None
-
None
-
None
-
None
Description
Running the integration tests with MySQL:
$ export DATABASE=mysql://user:pass@localhost/dbname
$ phpunit -d memory_limit=-1 -c phpunit-integration-legacy.xml
will generate errors like:
1) eZ\Publish\API\Repository\Tests\FieldType\XmlTextIntegrationTest::testCreateContentRelationsProcessedCorrect DOMDocument::loadXML(): Specification mandate value for attribute xm in Entity, line: 2 eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/XmlText.php:92 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:363 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:210 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:121 eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:243 eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:192 eZ/Publish/Core/Persistence/Legacy/Content/Type/MemoryCachingHandler.php:155 eZ/Publish/Core/Repository/ContentTypeService.php:885 eZ/Publish/Core/Repository/ContentTypeService.php:1468 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:347 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:286 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:526 eZ/Publish/API/Repository/Tests/FieldType/RelationBaseIntegrationTest.php:43 2) eZ\Publish\API\Repository\Tests\FieldType\XmlTextIntegrationTest::testUpdateContentRelationsProcessedCorrect DOMDocument::loadXML(): Specification mandate value for attribute xm in Entity, line: 2 eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/XmlText.php:92 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:363 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:210 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:121 eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:243 eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:192 eZ/Publish/Core/Persistence/Legacy/Content/Type/MemoryCachingHandler.php:155 eZ/Publish/Core/Repository/ContentTypeService.php:885 eZ/Publish/Core/Repository/ContentTypeService.php:1468 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:347 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:286 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:526 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:512 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:567 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:653 eZ/Publish/API/Repository/Tests/FieldType/RelationBaseIntegrationTest.php:60 3) eZ\Publish\API\Repository\Tests\FieldType\XmlTextIntegrationTest::testCreateContentType DOMDocument::loadXML(): Specification mandate value for attribute xm in Entity, line: 2 eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/XmlText.php:92 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:363 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:210 eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:121 eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:243 eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:192 eZ/Publish/Core/Persistence/Legacy/Content/Type/MemoryCachingHandler.php:155 eZ/Publish/Core/Repository/ContentTypeService.php:885 eZ/Publish/Core/Repository/ContentTypeService.php:1468 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:347 eZ/Publish/API/Repository/Tests/FieldType/BaseIntegrationTest.php:286
Attachments
Issue Links
- testing discovered
-
EZP-20695 Errors when running Unit Tests with DATABASE=mysql://...
- Closed