Issue #2358657 by zaporylie, geerlingguy: Fixed Wrong @covers definitions in Drupal project.

8.0.x
Alex Pott 2014-11-09 21:32:55 -08:00
parent 010c4dff59
commit 433b435e79
8 changed files with 8 additions and 20 deletions

View File

@ -80,7 +80,7 @@ class ResponsiveImageMappingConfigEntityUnitTest extends UnitTestCase {
/**
* @covers ::addMapping
* @covers ::hasMapping
* @covers ::hasMappings
*/
public function testHasMappings() {
$entity = new ResponsiveImageMapping(array());

View File

@ -81,7 +81,6 @@ class PermissionHandlerTest extends UnitTestCase {
*
* @covers ::__construct
* @covers ::getPermissions
* @covers ::buildPermissions
* @covers ::buildPermissionsYaml
* @covers ::moduleProvidesPermissions
*/
@ -154,7 +153,6 @@ class PermissionHandlerTest extends UnitTestCase {
*
* @covers ::__construct
* @covers ::getPermissions
* @covers ::buildPermissions
* @covers ::buildPermissionsYaml
* @covers ::sortPermissions
*/
@ -204,7 +202,6 @@ access_module_a1: single_description"
*
* @covers ::__construct
* @covers ::getPermissions
* @covers ::buildPermissions
* @covers ::buildPermissionsYaml
*/
public function testBuildPermissionsYamlCallback() {

View File

@ -45,7 +45,7 @@ class CacheTest extends UnitTestCase {
}
/**
* @covers validateTags
* @covers ::validateTags
*
* @dataProvider validateTagsProvider
*/
@ -74,7 +74,7 @@ class CacheTest extends UnitTestCase {
}
/**
* @covers mergeTags
* @covers ::mergeTags
*
* @dataProvider mergeTagsProvider
*/
@ -108,7 +108,7 @@ class CacheTest extends UnitTestCase {
}
/**
* @covers buildTags
* @covers ::buildTags
*
* @dataProvider buildTagsProvider
*/
@ -117,7 +117,7 @@ class CacheTest extends UnitTestCase {
}
/**
* @covers deleteTags
* @covers ::deleteTags
*
* @expectedException \LogicException
* @expectedExceptionMessage Cache tags must be strings, array given.
@ -127,7 +127,7 @@ class CacheTest extends UnitTestCase {
}
/**
* @covers invalidateTags
* @covers ::invalidateTags
*
* @expectedException \LogicException
* @expectedExceptionMessage Cache tags must be strings, array given.

View File

@ -14,6 +14,7 @@ use Symfony\Component\HttpFoundation\RequestStack;
/**
* Tests the Drupal class.
*
* @coversDefaultClass \Drupal
* @group DrupalTest
*/
class DrupalTest extends UnitTestCase {

View File

@ -81,12 +81,10 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase {
* Tests the schema for non-revisionable, non-translatable entities.
*
* @covers ::__construct()
* @covers ::getSchema()
* @covers ::getEntitySchemaTables()
* @covers ::initializeBaseTable()
* @covers ::addTableDefaults()
* @covers ::getEntityIndexName()
* @covers ::addFieldSchema()
* @covers ::getFieldIndexes()
* @covers ::getFieldUniqueKeys()
* @covers ::getFieldForeignKeys()
@ -389,7 +387,6 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase {
* Tests the schema for revisionable, non-translatable entities.
*
* @covers ::__construct()
* @covers ::getSchema()
* @covers ::getEntitySchemaTables()
* @covers ::initializeBaseTable()
* @covers ::initializeRevisionTable()
@ -489,7 +486,6 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase {
* Tests the schema for non-revisionable, translatable entities.
*
* @covers ::__construct()
* @covers ::getSchema()
* @covers ::getEntitySchemaTables()
* @covers ::initializeDataTable()
* @covers ::addTableDefaults()
@ -579,7 +575,6 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase {
* Tests the schema for revisionable, translatable entities.
*
* @covers ::__construct()
* @covers ::getSchema()
* @covers ::getEntitySchemaTables()
* @covers ::initializeDataTable()
* @covers ::addTableDefaults()

View File

@ -28,8 +28,6 @@ class ContextHandlerTest extends UnitTestCase {
/**
* {@inheritdoc}
*
* @covers ::__construct
*/
protected function setUp() {
parent::setUp();

View File

@ -213,7 +213,6 @@ class DefaultPluginManagerTest extends UnitTestCase {
* Tests plugins with the proper interface.
*
* @covers ::createInstance
* @covers ::enforcePluginInterface
*/
public function testCreateInstanceWithJustValidInterfaces() {
$plugin_manager = new TestPluginManager($this->namespaces, $this->expectedDefinitions, NULL, NULL, '\Drupal\plugin_test\Plugin\plugin_test\fruit\FruitInterface');
@ -227,7 +226,6 @@ class DefaultPluginManagerTest extends UnitTestCase {
* Tests plugins without the proper interface.
*
* @covers ::createInstance
* @covers ::enforcePluginInterface
*
* @expectedException \Drupal\Component\Plugin\Exception\PluginException
* @expectedExceptionMessage Plugin "kale" (Drupal\plugin_test\Plugin\plugin_test\fruit\Kale) in plugin_test should implement interface \Drupal\plugin_test\Plugin\plugin_test\fruit\FruitInterface
@ -258,7 +256,6 @@ class DefaultPluginManagerTest extends UnitTestCase {
* Tests plugins without a required interface.
*
* @covers ::getDefinitions
* @covers ::enforcePluginInterface
*/
public function testGetDefinitionsWithoutRequiredInterface() {
$module_handler = $this->getMock('Drupal\Core\Extension\ModuleHandlerInterface');

View File

@ -100,7 +100,7 @@ class AccessAwareRouterTest extends UnitTestCase {
/**
* Ensure that methods are passed to the wrapped router.
*
* @covers ::__call
* @covers \Drupal\Core\Routing\AccessAwareRouter::__call
*/
public function testCall() {
$mock_router = $this->getMock('Symfony\Component\Routing\RouterInterface');