Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing tests related to media #93

Closed
supersoju opened this issue Sep 6, 2019 · 1 comment

Comments

@supersoju
Copy link

commented Sep 6, 2019

We've seen failing tests starting from September 4th on our setup. PHPUnit output is as follows:

  1. Tests_Image_Functions::test_pdf_preview_doesnt_overwrite_existing_jpeg
    Undefined index: sizes

/var/www/vhosts/wp-test-runner/tests/phpunit/tests/image/functions.php:620

--

There were 3 failures:

  1. Tests_Image_Functions::test_wp_generate_attachment_metadata_pdf
    Failed asserting that Array &0 () is identical to Array &0 (
    'sizes' => Array &1 (
    'thumbnail' => Array &2 (
    'file' => 'wordpress-gsoc-flyer-pdf-116x150.jpg'
    'width' => 116
    'height' => 150
    'mime-type' => 'image/jpeg'
    )
    'medium' => Array &3 (
    'file' => 'wordpress-gsoc-flyer-pdf-232x300.jpg'
    'width' => 232
    'height' => 300
    'mime-type' => 'image/jpeg'
    )
    'large' => Array &4 (
    'file' => 'wordpress-gsoc-flyer-pdf-791x1024.jpg'
    'width' => 791
    'height' => 1024
    'mime-type' => 'image/jpeg'
    )
    'full' => Array &5 (
    'file' => 'wordpress-gsoc-flyer-pdf.jpg'
    'width' => 1088
    'height' => 1408
    'mime-type' => 'image/jpeg'
    )
    )
    ).

/var/www/vhosts/wp-test-runner/tests/phpunit/tests/image/functions.php:466

  1. Tests_Image_Functions::test_crop_setting_for_pdf
    Failed asserting that Array &0 () is identical to Array &0 (
    'sizes' => Array &1 (
    'thumbnail' => Array &2 (
    'file' => 'wordpress-gsoc-flyer-pdf-116x150.jpg'
    'width' => 116
    'height' => 150
    'mime-type' => 'image/jpeg'
    )
    'medium' => Array &3 (
    'file' => 'wordpress-gsoc-flyer-pdf-300x300.jpg'
    'width' => 300
    'height' => 300
    'mime-type' => 'image/jpeg'
    )
    'large' => Array &4 (
    'file' => 'wordpress-gsoc-flyer-pdf-791x1024.jpg'
    'width' => 791
    'height' => 1024
    'mime-type' => 'image/jpeg'
    )
    'full' => Array &5 (
    'file' => 'wordpress-gsoc-flyer-pdf.jpg'
    'width' => 1088
    'height' => 1408
    'mime-type' => 'image/jpeg'
    )
    )
    ).

/var/www/vhosts/wp-test-runner/tests/phpunit/tests/image/functions.php:531

  1. Tests_Image_Functions::test_fallback_intermediate_image_sizes
    The test-size was not added to the metadata.
    Failed asserting that false is true.

/var/www/vhosts/wp-test-runner/tests/phpunit/tests/image/functions.php:572

==================
end test output

Along with this, there was output outside of PHPUnit, which may be related:
GPL Ghostscript 9.25: Can't find initialization file gs_init.ps.

@getsource

This comment has been minimized.

Copy link
Member

commented Sep 17, 2019

Hi! Thanks so much for the report!
We talked about this in Slack, and it sounds like it's working again. I'm going to close the issue, but please feel free to reopen if you continue to see the problem.

@getsource getsource closed this Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.