Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295845

REST test fails depending on local testing URL

$
0
0

This probably would not happen on DrupalCI

But this code in \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase
$this->assertSame([str_replace($this->entity->id(), static::$firstCreatedEntityId, $this->entity->toUrl('canonical')->setAbsolute(TRUE)->toString())], $response->getHeader('Location'));

causes a error for me locally

1) Drupal\Tests\rest\Functional\EntityResource\User\UserJsonAnonTest::testPost
Failed asserting that Array &0 (
0 => 'http://www.local.dev/d8_3_rest/user/4'
) is identical to Array &0 (
0 => 'http://www.local.dev/d8_4_rest/user/4'
).

This is because "3" is replaced in "d8_3_rest" where it should only be replaced in "user/3"


Viewing all articles
Browse latest Browse all 295845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>