diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php b/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php index f3f918c..47b3961 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php @@ -206,7 +206,7 @@ public function collectRoutes(RouteCollection $collection) { $requirements = array('_method' => 'GET'); // Only add requirements on formats if some have been configured, otherwise - // Use all available formats. + // use all available formats. if (!empty($style_plugin->options['formats'])) { $formats = $style_plugin->options['formats']; } diff --git a/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php b/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php index 1345c72..19b986f 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php @@ -65,7 +65,7 @@ protected function setUp() { /** * Checks the behavior of the Serializer callback paths and row plugins. */ - public function _testSerializerResponses() { + public function testSerializerResponses() { // Test the serialize callback. $view = views_get_view('test_serializer_display_field'); $view->initDisplay(); @@ -139,7 +139,7 @@ public function testReponseFormatConfiguration() { $this->drupalPost($style_options, array('style_options[formats][xml]' => 'xml'), t('Apply')); $this->drupalPost(NULL, array(), t('Save')); - // Should not return a 406. + // Should return a 406. $this->drupalGet('test/serialize/field', array(), array('Accept: application/json')); $this->assertResponse(406, 'A 406 response was returned when JSON was requested.'); // Should return a 200. @@ -156,7 +156,7 @@ public function testReponseFormatConfiguration() { // Should return a 200. $this->drupalGet('test/serialize/field', array(), array('Accept: application/xml')); $this->assertResponse(200, 'A 200 response was returned when XML was requested'); - // Should not return a 406. + // Should return a 406. $this->drupalGet('test/serialize/field', array(), array('Accept: application/html')); $this->assertResponse(406, 'A 406 response was returned when HTML was requested.'); } @@ -164,7 +164,7 @@ public function testReponseFormatConfiguration() { /** * Test the field ID alias functionality of the DataFieldRow plugin. */ - public function _testUIFieldAlias() { + public function testUIFieldAlias() { $this->drupalLogin($this->adminUser); // Test the UI settings for adding field ID aliases. @@ -231,7 +231,7 @@ public function _testUIFieldAlias() { /** * Tests the raw output options for row field rendering. */ - public function _testFieldRawOutput() { + public function testFieldRawOutput() { $this->drupalLogin($this->adminUser); // Test the UI settings for adding field ID aliases. @@ -257,7 +257,7 @@ public function _testFieldRawOutput() { /** * Tests the preview output for json output. */ - public function _testPreview() { + public function testPreview() { $view = views_get_view('test_serializer_display_entity'); $view->setDisplay('rest_export_1'); $this->executeView($view);