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

Two unit tests failures in Legacy Storage Engine and one in InMemory

    Details

    • Sprint:
      Stetind Sprint 1

      Description

      The first one, the InMemory one, is included as it might hint about something being wrong in Legacy.

      1) eZ\Publish\Core\Repository\Tests\Service\InMemory\ContentTest::testUpdateContentWithNewLanguage
      Failed asserting that actual size 2 matches expected size 3.

      /Users/andrerom/Sites/www/next/eZ/Publish/Core/Repository/Tests/Service/ContentBase.php:1575

      3) eZ\Publish\Core\Persistence\Legacy\Tests\Content\ContentHandlerTest::testCopyAllVersions
      Expectation failed for method name is equal to <string:insertVersion> when invoked 1 time(s).
      Parameter 0 for invocation eZ\Publish\Core\Persistence\Legacy\Content\Gateway::insertVersion(eZ\Publish\SPI\Persistence\Content\VersionInfo Object (...), Array ()) does not match expected value.
      Failed asserting that two objects are equal.

      4) eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdater\Action\AddFieldTest::testApply
      Expectation failed for method name is equal to <string:insertNewField> when invoked 1 time(s).
      Parameter 1 for invocation eZ\Publish\Core\Persistence\Legacy\Content\Gateway::insertNewField(eZ\Publish\SPI\Persistence\Content Object (...), eZ\Publish\SPI\Persistence\Content\Field Object (...), eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue Object (...)) does not match expected value.
      Failed asserting that two objects are equal.

        Activity

        Hide
        Petar Spanja (Inactive) added a comment -
        Show
        Petar Spanja (Inactive) added a comment - PR for first failure: https://github.com/ezsystems/ezp-next/pull/150
        Hide
        Petar Spanja (Inactive) added a comment -

        I can't reproduce last two failures this with PHPUnit 3.6.12.

        With PHPUnit 3.7.9 failures do appear, possibly connected with: https://github.com/sebastianbergmann/phpunit-mock-objects/issues/105

        Show
        Petar Spanja (Inactive) added a comment - I can't reproduce last two failures this with PHPUnit 3.6.12. With PHPUnit 3.7.9 failures do appear, possibly connected with: https://github.com/sebastianbergmann/phpunit-mock-objects/issues/105
        Show
        Petar Spanja (Inactive) added a comment - Second failure was fixed in: https://github.com/ezsystems/ezp-next/commit/dd85eb35b1573342a77b992cefb7fe58c9800954

          People

          • Assignee:
            Unassigned
            Reporter:
            André Rømcke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 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, 30 minutes
              1h 30m

                Agile