Commit 493149ee authored by catch's avatar catch
Browse files

Issue #3263654 by Spokje, bbrala, daffie, Kristen Pol, longwave: Move all HAL...

Issue #3263654 by Spokje, bbrala, daffie, Kristen Pol, longwave: Move all HAL tests to the module in preparation of removal in D10
parent ffdbfa52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@
 *   and HAL.
 * - Node entity support is configured by default. If you would like to support
 *   other types of entities, you can copy
 *   core/modules/rest/config/install/rest.settings.yml to your sync
 *   core/modules/hal/config/optional/rest.resource.entity.node.yml to your sync
 *   configuration directory, appropriately modified for other entity types,
 *   and import it. Support for GET on the log from the Database Logging module
 *   can also be enabled in this way; in this case, the 'entity:node' line
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ class CommentFieldFilterTest extends CommentTestBase {
   */
  public $commentTitles = [];

  protected function setUp($import_test_views = TRUE): void {
  protected function setUp($import_test_views = TRUE, $modules = ['comment_test_views']): void {
    parent::setUp($import_test_views);
    $this->drupalLogin($this->drupalCreateUser(['access comments']));

+2 −2
Original line number Diff line number Diff line
@@ -56,10 +56,10 @@ abstract class CommentTestBase extends ViewTestBase {
   */
  protected $comment;

  protected function setUp($import_test_views = TRUE) {
  protected function setUp($import_test_views = TRUE, $modules = ['comment_test_views']) {
    parent::setUp($import_test_views);

    ViewTestData::createTestViews(static::class, ['comment_test_views']);
    ViewTestData::createTestViews(static::class, $modules);

    // Add two users, create a node with the user1 as author and another node
    // with user2 as author. For the second node add a comment from user1.
+10 −0
Original line number Diff line number Diff line
---
label: 'Hypertext Application Language (HAL)'
top_level: true
related:
  - core.web_services
---
<h2>{% trans %}HAL module{% endtrans %}</h2>
<p>{% trans %}Adds support for serializing content entities using the JSON version of HAL.{% endtrans %}</p>
<h2>{% trans %}What is Hypertext Application Language (HAL)?{% endtrans %}</h2>
<p>{% trans %}<a href="https://stateless.co/hal_specification.html">Hypertext Application Language (HAL)</a> is a serialization format that supports linking, which enables web applications to follow links and explore relationships between the data and content items that are provided by the web service. Serialized HAL data can be provided in either JSON or XML format.{% endtrans %}</p>
Loading