Skip to content
Snippets Groups Projects
Verified Commit d669774c authored by Alex Pott's avatar Alex Pott
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)
(cherry picked from commit e6df71a6)
parent 1ca3f145
No related branches found
No related tags found
9 merge requests!4488Issue #3376281: Random machine names no longer need to be wrapped in strtolower(),!3149Issue #3282285: Email "" does not comply with addr-spec of RFC 2822,!3000Issue #793660: Check for failure of hook_install,!2940Issue #3320240: Entity count query returns a string instead of int,!2937Issue #3315245: Order of languages overrides default language fallback,!2877Issue #3056652 by yogeshmpawar, mashermike, aalin, ranjith_kumar_k_u: Link...,!1627Issue #3082958: Add gitignore(s) to composer-ready project templates,!1014Issue #3226806: Move filter implementations from filter.module to plugin classes,!939Issue #2971209: Allow the MediaLibraryUiBuilder service to use an alternative view display
......@@ -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/3213752');
[$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', [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment