see details here:
https://www.drupal.org/pift-ci-job/393683

testNodeDisplay

fail: [Other] Line 1160 of sites/all/modules/media/tests/media.test:
Failed to set field fields[e8yjunt5][type] to file_default

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joseph.olstad created an issue. See original summary.

joseph.olstad’s picture

joseph.olstad’s picture

Title: Media testbot fix urgent » Media testbot fix urgent on 7.x-2.x branch
csheltonlcm’s picture

Strange - when the test tries to set the file formatter type for the file field, the response it gets back is "You are not authorized to access this page.". The body tag in the response *does* have the "logged-in" class, however.

joseph.olstad’s picture

ok, so looks like a permission issue, perhaps a dependency permission changed and the permission needs to be added in the setUp.

any help with a patch for the test would be appreciated :)

csheltonlcm’s picture

It looks like Drupal 7.50 added the 'administer fields' permission, and adding this in was enough to fix the tests on my local machine.

joseph.olstad’s picture

nice work @csheltonlcm
thanks!

joseph.olstad’s picture

Status: Needs review » Fixed

Status: Fixed » Needs work

The last submitted patch, 6: media-field_test_fix-2792499-6-D7.patch, failed testing.

joseph.olstad’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.