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

Wrong error message on failed tests in FieldRenderingExtensionIntegrationTest:testIntegration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.7.4-rc, 1.10.0
    • Component/s: Platform > MVC
    • Labels:
      None

      Description

      When running tests on ezpublish-kernel with Twig version 2.* installed, there is a wrong error message when one of the tests using FieldRenderingExtensionIntegrationTest:testIntegration could not pass. Instead of correct error explaining what went wrong, the error looks like this:

      Error: Call to undefined method Twig_Loader_Chain::getSource()
      

      The example can be seen here: https://travis-ci.org/ezsystems/ezpublish-kernel/jobs/231475923. This is also where I discovered the bug.

      The bug comes from the fact that function Twig_Loader_Chain::getSource() was deprecated in Twig version 1.27 and removed in version 2.0 in favor of Twig_Loader_Chain::getSourceContext(). Current usage of this function can be found here: https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/MVC/Symfony/Templating/Tests/Twig/Extension/FileSystemTwigIntegrationTestCase.php#L127.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jacek.foremski-obsolete@ez.no Jacek Foremski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: