Verified Commit e6df71a6 authored by alexpott's avatar alexpott
Browse files

Issue #3280302 by anoopsingh92, Shashwat Purav, arunkumark, bbrala:...

Issue #3280302 by anoopsingh92, Shashwat Purav, arunkumark, bbrala: JsonApiDocumentTopLevelNormalizerTest::generateProphecies called with extra arguments

(cherry picked from commit f27dc02c)
parent 98deec06
......@@ -362,7 +362,7 @@ public function testNormalize() {
public function testNormalizeRelated() {
$this->markTestIncomplete('This fails and should be fixed by https://www.drupal.org/project/drupal/issues/2922121');
[$request, $resource_type] = $this->generateProphecies('node', 'article', 'uid');
[$request, $resource_type] = $this->generateProphecies('node', 'article');
$request->query = new ParameterBag([
'fields' => [
'user--user' => 'name,roles',
......@@ -397,7 +397,7 @@ public function testNormalizeRelated() {
* @covers ::normalize
*/
public function testNormalizeUuid() {
[$request, $resource_type] = $this->generateProphecies('node', 'article', 'uuid');
[$request, $resource_type] = $this->generateProphecies('node', 'article');
$resource_object = ResourceObject::createFromEntity($resource_type, $this->node);
$include_param = 'uid,field_tags';
$includes = $this->includeResolver->resolve($resource_object, $include_param);
......@@ -534,7 +534,7 @@ public function testAliasFieldRouteException() {
* @covers ::normalize
*/
public function testNormalizeConfig() {
[$request, $resource_type] = $this->generateProphecies('node_type', 'node_type', 'id');
[$request, $resource_type] = $this->generateProphecies('node_type', 'node_type');
$resource_object = ResourceObject::createFromEntity($resource_type, $this->nodeType);
$document_wrapper = new JsonApiDocumentTopLevel(new ResourceObjectData([$resource_object], 1), new NullIncludedData(), new LinkCollection([]));
......@@ -567,7 +567,7 @@ public function testNormalizeConfig() {
public function testDenormalize() {
$payload = '{"data":{"type":"article","attributes":{"title":"Testing article"}}}';
[$request, $resource_type] = $this->generateProphecies('node', 'article', 'id');
[$request, $resource_type] = $this->generateProphecies('node', 'article');
$node = $this
->getNormalizer()
->denormalize(Json::decode($payload), NULL, 'api_json', [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment