Skip to content

Commit

Permalink
[TMP] broken commit on ContentTypeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Oct 4, 2016
1 parent 5f87037 commit 7b42078
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions eZ/Bundle/EzPublishRestBundle/Tests/Functional/ContentTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ public function testLoadContentTypeGroup($contentTypeGroupHref)
self::assertHttpResponseCodeEquals($response, 200);

$contentTypeGroup = $this->parseContentTypeGroupFromResponse($response);

$this->assertHttpResponseHasCacheTags(
$response,
['content-type-group' => $contentTypeGroup->id]
);
}

/**
Expand Down Expand Up @@ -255,6 +260,13 @@ public function testLoadContentType($contentTypeHref)
self::assertHttpResponseCodeEquals($response, 200);

$contentType = $this->parseContentTypeFromResponse($response);
$this->assertHttpResponseHasCacheTags(
$response,
[
'content-type' => $contentType->id,
'content-type-group' => $contentType->contentTypeGroups[0]->id,
]
);
}

/**
Expand All @@ -281,6 +293,8 @@ public function testListContentTypes()
);

self::assertHttpResponseCodeEquals($response, 200);

$this->parseContentTypeListFromRespose($response);
}

/**
Expand All @@ -296,7 +310,7 @@ public function testListContentTypesByIdentifier()
// @todo This isn't consistent with the behaviour of /content/typegroups?identifier=
self::assertHttpResponseCodeEquals($response, 200);

$contentType = $this->parseContentTypeFromResponse($response);
$contentTypeList = $this->parseContentTypeListFromRespose($response);
}

/**
Expand All @@ -312,7 +326,7 @@ public function testListContentTypesByRemoteId()
// @todo This isn't consistent with the behaviour of /content/typegroups?identifier=
self::assertHttpResponseCodeEquals($response, 200);

$contentType = $this->parseContentTypeFromResponse($response);
$contentTypeList = $this->parseContentTypeListFromResponse($response);
}

/**
Expand Down Expand Up @@ -483,6 +497,10 @@ public function testLoadContentTypeFieldDefinition($fieldDefinitionHref)
);

self::assertHttpResponseCodeEquals($response, 200);
$this->assertHttpResponseHasCacheTags(
$response,
['content-type-' . $this->extractLastIdFromHref($contentTypeHref)]
);

// @todo Cache test. Needs the contentTypeId
}
Expand Down Expand Up @@ -714,4 +732,8 @@ private function parseContentTypeFromResponse(Response $response)
]
);
}

private function parseContentTypeListFromRespose($response)
{
}
}

0 comments on commit 7b42078

Please sign in to comment.