Issue #2409587 by Cogax: Incorrect documentation for @covers
parent
527f6dbe73
commit
22a1fd62cf
|
@ -179,8 +179,8 @@ class RowTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests getting/setting the ID Map.
|
||||
*
|
||||
* @covers \Drupal\migrate\Row::setIdMap
|
||||
* @covers \Drupal\migrate\Row::getIdMap
|
||||
* @covers ::setIdMap
|
||||
* @covers ::getIdMap
|
||||
*/
|
||||
public function testGetSetIdMap() {
|
||||
$row = new Row($this->testValues, $this->testSourceIds);
|
||||
|
@ -204,7 +204,7 @@ class RowTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests getting the source property.
|
||||
*
|
||||
* @covers \Drupal\migrate\Row::getSourceProperty
|
||||
* @covers ::getSourceProperty
|
||||
*/
|
||||
public function testGetSourceProperty() {
|
||||
$row = new Row($this->testValues, $this->testSourceIds);
|
||||
|
|
|
@ -32,8 +32,8 @@ class PathFieldDefinitionTest extends BaseFieldDefinitionTestBase {
|
|||
/**
|
||||
* Tests BaseFieldDefinition::getColumns().
|
||||
*
|
||||
* @covers \Drupal\Core\Field\BaseFieldDefinition::getColumns
|
||||
* @covers \Drupal\path\Plugin\Field\FieldType\PathItem::schema
|
||||
* @covers ::getColumns
|
||||
* @covers ::schema
|
||||
*/
|
||||
public function testGetColumns() {
|
||||
$this->assertSame(array(), $this->definition->getColumns());
|
||||
|
|
|
@ -498,7 +498,7 @@ class AccessManagerTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests the checkNamedRoute with default values.
|
||||
*
|
||||
* @covers \Drupal\Core\Access\AccessManager::checkNamedRoute
|
||||
* @covers ::checkNamedRoute
|
||||
*/
|
||||
public function testCheckNamedRouteWithDefaultValue() {
|
||||
$this->routeCollection = new RouteCollection();
|
||||
|
|
|
@ -31,7 +31,7 @@ class TranslationTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers \Drupal\Core\Annotation\Translation::get
|
||||
* @covers ::get
|
||||
*
|
||||
* @dataProvider providerTestGet
|
||||
*/
|
||||
|
|
|
@ -43,7 +43,7 @@ class AjaxRendererTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests the content method.
|
||||
*
|
||||
* @covers \Drupal\Core\Render\MainContent\AjaxRenderer::renderResponse
|
||||
* @covers ::renderResponse
|
||||
*/
|
||||
public function testRenderWithFragmentObject() {
|
||||
$main_content = ['#markup' => 'example content'];
|
||||
|
|
|
@ -86,7 +86,7 @@ class EntityListBuilderTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers \Drupal\Core\Entity\EntityListBuilder::getOperations
|
||||
* @covers ::getOperations
|
||||
*/
|
||||
public function testGetOperations() {
|
||||
$operation_name = $this->randomMachineName();
|
||||
|
|
|
@ -104,7 +104,7 @@ class MailManagerTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests the getInstance method.
|
||||
*
|
||||
* @covers \Drupal\Core\Mail\MailManager::getInstance
|
||||
* @covers ::getInstance
|
||||
*/
|
||||
public function testGetInstance() {
|
||||
$interface = array(
|
||||
|
|
|
@ -119,7 +119,7 @@ class ContextualLinkDefaultTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests the getRouteName() method.
|
||||
*
|
||||
* @covers \Drupal\Core\Menu\ContextualLinkDefault::getRouteName
|
||||
* @covers ::getRouteName
|
||||
*/
|
||||
public function testGetRouteName($route_name = 'test_route_name') {
|
||||
$this->pluginDefinition['route_name'] = $route_name;
|
||||
|
@ -131,7 +131,7 @@ class ContextualLinkDefaultTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests the getGroup() method.
|
||||
*
|
||||
* @covers \Drupal\Core\Menu\ContextualLinkDefault::getGroup
|
||||
* @covers ::getGroup
|
||||
*/
|
||||
public function testGetGroup($group_name = 'test_group') {
|
||||
$this->pluginDefinition['group'] = $group_name;
|
||||
|
@ -143,7 +143,7 @@ class ContextualLinkDefaultTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests the getOptions() method.
|
||||
*
|
||||
* @covers \Drupal\Core\Menu\ContextualLinkDefault::getOptions
|
||||
* @covers ::getOptions
|
||||
*/
|
||||
public function testGetOptions($options = array('key' => 'value')) {
|
||||
$this->pluginDefinition['options'] = $options;
|
||||
|
@ -155,7 +155,7 @@ class ContextualLinkDefaultTest extends UnitTestCase {
|
|||
/**
|
||||
* Tests the getWeight() method.
|
||||
*
|
||||
* @covers \Drupal\Core\Menu\ContextualLinkDefault::getWeight
|
||||
* @covers ::getWeight
|
||||
*/
|
||||
public function testGetWeight($weight = 5) {
|
||||
$this->pluginDefinition['weight'] = $weight;
|
||||
|
|
|
@ -122,7 +122,7 @@ class LocalActionManagerTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers \Drupal\Core\Menu\LocalActionManager::getTitle
|
||||
* @covers ::getTitle
|
||||
*/
|
||||
public function testGetTitle() {
|
||||
$local_action = $this->getMock('Drupal\Core\Menu\LocalActionInterface');
|
||||
|
@ -139,7 +139,7 @@ class LocalActionManagerTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers \Drupal\Core\Menu\LocalActionManager::getActionsForRoute
|
||||
* @covers ::getActionsForRoute
|
||||
*
|
||||
* @dataProvider getActionsForRouteProvider
|
||||
*/
|
||||
|
|
|
@ -100,7 +100,7 @@ class AccessAwareRouterTest extends UnitTestCase {
|
|||
/**
|
||||
* Ensure that methods are passed to the wrapped router.
|
||||
*
|
||||
* @covers \Drupal\Core\Routing\AccessAwareRouter::__call
|
||||
* @covers ::__call
|
||||
*/
|
||||
public function testCall() {
|
||||
$mock_router = $this->getMock('Symfony\Component\Routing\RouterInterface');
|
||||
|
|
|
@ -102,7 +102,7 @@ abstract class RouteMatchBaseTest extends UnitTestCase {
|
|||
|
||||
/**
|
||||
* @covers ::getParameter
|
||||
* @covers \Drupal\Core\Routing\RouteMatch::getParameterNames
|
||||
* @covers ::getParameterNames
|
||||
* @dataProvider routeMatchProvider
|
||||
*/
|
||||
public function testGetParameter(RouteMatchInterface $route_match, Route $route, $parameters, $expected_filtered_parameters) {
|
||||
|
@ -116,7 +116,7 @@ abstract class RouteMatchBaseTest extends UnitTestCase {
|
|||
|
||||
/**
|
||||
* @covers ::getParameters
|
||||
* @covers \Drupal\Core\Routing\RouteMatch::getParameterNames
|
||||
* @covers ::getParameterNames
|
||||
* @dataProvider routeMatchProvider
|
||||
*/
|
||||
public function testGetParameters(RouteMatchInterface $route_match, Route $route, $parameters, $expected_filtered_parameters) {
|
||||
|
@ -125,7 +125,7 @@ abstract class RouteMatchBaseTest extends UnitTestCase {
|
|||
|
||||
/**
|
||||
* @covers ::getRawParameter
|
||||
* @covers \Drupal\Core\Routing\RouteMatch::getParameterNames
|
||||
* @covers ::getParameterNames
|
||||
* @dataProvider routeMatchProvider
|
||||
*/
|
||||
public function testGetRawParameter(RouteMatchInterface $route_match, Route $route, $parameters, $expected_filtered_parameters) {
|
||||
|
@ -139,7 +139,7 @@ abstract class RouteMatchBaseTest extends UnitTestCase {
|
|||
|
||||
/**
|
||||
* @covers ::getRawParameters
|
||||
* @covers \Drupal\Core\Routing\RouteMatch::getParameterNames
|
||||
* @covers ::getParameterNames
|
||||
* @dataProvider routeMatchProvider
|
||||
*/
|
||||
public function testGetRawParameters(RouteMatchInterface $route_match, Route $route, $parameters, $expected_filtered_parameters) {
|
||||
|
|
Loading…
Reference in New Issue