Commit 433b435e authored by alexpott's avatar alexpott

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

parent 010c4dff
......@@ -80,7 +80,7 @@ public function testCalculateDependencies() {
/**
* @covers ::addMapping
* @covers ::hasMapping
* @covers ::hasMappings
*/
public function testHasMappings() {
$entity = new ResponsiveImageMapping(array());
......
......@@ -81,7 +81,6 @@ protected function mockModuleExtension($module, $name) {
*
* @covers ::__construct
* @covers ::getPermissions
* @covers ::buildPermissions
* @covers ::buildPermissionsYaml
* @covers ::moduleProvidesPermissions
*/
......@@ -154,7 +153,6 @@ public function testBuildPermissionsYaml() {
*
* @covers ::__construct
* @covers ::getPermissions
* @covers ::buildPermissions
* @covers ::buildPermissionsYaml
* @covers ::sortPermissions
*/
......@@ -204,7 +202,6 @@ public function testBuildPermissionsSortPerModule() {
*
* @covers ::__construct
* @covers ::getPermissions
* @covers ::buildPermissions
* @covers ::buildPermissionsYaml
*/
public function testBuildPermissionsYamlCallback() {
......
......@@ -45,7 +45,7 @@ public function validateTagsProvider() {
}
/**
* @covers validateTags
* @covers ::validateTags
*
* @dataProvider validateTagsProvider
*/
......@@ -74,7 +74,7 @@ public function mergeTagsProvider() {
}
/**
* @covers mergeTags
* @covers ::mergeTags
*
* @dataProvider mergeTagsProvider
*/
......@@ -108,7 +108,7 @@ public function buildTagsProvider() {
}
/**
* @covers buildTags
* @covers ::buildTags
*
* @dataProvider buildTagsProvider
*/
......@@ -117,7 +117,7 @@ public function testBuildTags($prefix, array $suffixes, array $expected) {
}
/**
* @covers deleteTags
* @covers ::deleteTags
*
* @expectedException \LogicException
* @expectedExceptionMessage Cache tags must be strings, array given.
......@@ -127,7 +127,7 @@ public function testDeleteTags() {
}
/**
* @covers invalidateTags
* @covers ::invalidateTags
*
* @expectedException \LogicException
* @expectedExceptionMessage Cache tags must be strings, array given.
......
......@@ -14,6 +14,7 @@
/**
* Tests the Drupal class.
*
* @coversDefaultClass \Drupal
* @group DrupalTest
*/
class DrupalTest extends UnitTestCase {
......
......@@ -81,12 +81,10 @@ protected function setUp() {
* 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 @@ public function testGetSchemaBase() {
* Tests the schema for revisionable, non-translatable entities.
*
* @covers ::__construct()
* @covers ::getSchema()
* @covers ::getEntitySchemaTables()
* @covers ::initializeBaseTable()
* @covers ::initializeRevisionTable()
......@@ -489,7 +486,6 @@ public function testGetSchemaRevisionable() {
* Tests the schema for non-revisionable, translatable entities.
*
* @covers ::__construct()
* @covers ::getSchema()
* @covers ::getEntitySchemaTables()
* @covers ::initializeDataTable()
* @covers ::addTableDefaults()
......@@ -579,7 +575,6 @@ public function testGetSchemaTranslatable() {
* Tests the schema for revisionable, translatable entities.
*
* @covers ::__construct()
* @covers ::getSchema()
* @covers ::getEntitySchemaTables()
* @covers ::initializeDataTable()
* @covers ::addTableDefaults()
......
......@@ -28,8 +28,6 @@ class ContextHandlerTest extends UnitTestCase {
/**
* {@inheritdoc}
*
* @covers ::__construct
*/
protected function setUp() {
parent::setUp();
......
......@@ -213,7 +213,6 @@ public function testCacheClearWithTags() {
* 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 @@ public function testCreateInstanceWithJustValidInterfaces() {
* 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 @@ public function testCreateInstanceWithInvalidInterfaces() {
* Tests plugins without a required interface.
*
* @covers ::getDefinitions
* @covers ::enforcePluginInterface
*/
public function testGetDefinitionsWithoutRequiredInterface() {
$module_handler = $this->getMock('Drupal\Core\Extension\ModuleHandlerInterface');
......
......@@ -100,7 +100,7 @@ public function testMatchRequestDenied() {
/**
* 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');
......
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