Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20694

MySQL integration tests fail with DOMDocument errors

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High 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

        Activity

          People

            Unassigned Unassigned
            patrick.allaert-obsolete@ez.no Patrick Allaert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 45 minutes
                1h 45m