Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
211fd408
Commit
211fd408
authored
Nov 01, 2014
by
alexpott
Browse files
Issue
#2366645
by YesCT, Mile23: Drupal\Tests\Core\Controller\AjaxControllerTest has wrong @covers.
parent
e3e70445
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/tests/Drupal/Tests/Core/Controller/AjaxControllerTest.php
View file @
211fd408
...
...
@@ -14,7 +14,7 @@
use
Symfony\Component\HttpFoundation\Request
;
/**
* @coversDefaultClass \Drupal\Core\Controller\AjaxController
Test
* @coversDefaultClass \Drupal\Core\Controller\AjaxController
* @group Ajax
*/
class
AjaxControllerTest
extends
UnitTestCase
{
...
...
@@ -47,9 +47,9 @@ protected function setUp() {
}
/**
* Tests the
renderMainC
ontent method.
* Tests the
c
ontent 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'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment