Commit 211fd408 authored by alexpott's avatar alexpott
Browse files

Issue #2366645 by YesCT, Mile23: Drupal\Tests\Core\Controller\AjaxControllerTest has wrong @covers.

parent e3e70445
......@@ -14,7 +14,7 @@
use Symfony\Component\HttpFoundation\Request;
/**
* @coversDefaultClass \Drupal\Core\Controller\AjaxControllerTest
* @coversDefaultClass \Drupal\Core\Controller\AjaxController
* @group Ajax
*/
class AjaxControllerTest extends UnitTestCase {
......@@ -47,9 +47,9 @@ protected function setUp() {
}
/**
* Tests the renderMainContent method.
* Tests the content method.
*
* @covers \Drupal\Core\Controller\AjaxController::renderContentIntoResponse
* @covers ::content
*/
public function testRenderWithFragmentObject() {
$main_content = ['#markup' => 'example content'];
......@@ -71,9 +71,9 @@ public function testRenderWithFragmentObject() {
}
/**
* Tests the handle method with a Json response object.
* Tests the content method with a Json response object.
*
* @covers \Drupal\Core\Controller\AjaxController::handle
* @covers ::content
*/
public function testRenderWithResponseObject() {
$json_response = new JsonResponse(array('foo' => 'bar'));
......@@ -85,9 +85,9 @@ public function testRenderWithResponseObject() {
}
/**
* Tests the handle method with an Ajax response object.
* Tests the content method with an Ajax response object.
*
* @covers \Drupal\Core\Controller\AjaxController::handle
* @covers ::content
*/
public function testRenderWithAjaxResponseObject() {
$ajax_response = new AjaxResponse(array('foo' => 'bar'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment