The automated test run in \Drupal\Tests\jsonapi\Functional\RestJsonApiUnsupported::testApiJsonNotSupportedInRest() fails when run locally, with strlen() expects parameter 1 to be string, array given. Looking at the code, there is a call to \Drupal\Tests\rest\Functional\ResourceTestBase::provisionResource() that is missing the first parameter, which should be a REST resource plugin ID.

I'm not sure why this failure doesn't show up when run on DrupalCI, but it's clearly not correct.

The attached patch fixes the test on my local.

CommentFileSizeAuthor
testApiJsonNotSupportedInRest_fix.patch662 byteshampercm

Comments

hampercm created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, testApiJsonNotSupportedInRest_fix.patch, failed testing.

grimreaper’s picture

Hello,

I also got it yesterday but if you update core to 8.3.0 there is no more bug.

hampercm’s picture

Status: Needs work » Closed (outdated)

Ugh. Yes, I just figured that out. Thanks for the heads-up @Grimreaper!
Closing this out.