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
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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', [