Commit 30c2afed authored by webchick's avatar webchick

Issue #697760 by sun: Replace getInfo() in tests with native phpDoc +...

Issue #697760 by sun: Replace getInfo() in tests with native phpDoc + annotations (following PHPUnit).
parent f905406d

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -10,8 +10,9 @@
use Drupal\simpletest\WebTestBase;
/**
* Tests action uninstallation.
* Tests that uninstalling actions does not remove other module's actions.
*
* @group action
* @see \Drupal\action\Plugin\views\field\BulkForm
*/
class ActionUninstallTest extends WebTestBase {
......@@ -23,14 +24,6 @@ class ActionUninstallTest extends WebTestBase {
*/
public static $modules = array('views', 'action');
public static function getInfo() {
return array(
'name' => 'Uninstall action test',
'description' => 'Tests that uninstalling actions does not remove other module\'s actions.',
'group' => 'Action',
);
}
/**
* Tests Action uninstall.
*/
......
......@@ -13,6 +13,7 @@
/**
* Tests the views bulk form test.
*
* @group action
* @see \Drupal\action\Plugin\views\field\BulkForm
*/
class BulkFormTest extends WebTestBase {
......@@ -24,14 +25,6 @@ class BulkFormTest extends WebTestBase {
*/
public static $modules = array('node', 'action_bulk_test');
public static function getInfo() {
return array(
'name' => 'Bulk form',
'description' => 'Tests the views bulk form test.',
'group' => 'Action',
);
}
/**
* Tests the bulk form.
*/
......
......@@ -11,7 +11,10 @@
use Drupal\simpletest\WebTestBase;
/**
* Actions configuration.
* Tests complex actions configuration by adding, editing, and deleting a
* complex action.
*
* @group action
*/
class ConfigurationTest extends WebTestBase {
......@@ -22,14 +25,6 @@ class ConfigurationTest extends WebTestBase {
*/
public static $modules = array('action');
public static function getInfo() {
return array(
'name' => 'Actions configuration',
'description' => 'Tests complex actions configuration by adding, editing, and deleting a complex action.',
'group' => 'Action',
);
}
/**
* Tests configuration of advanced actions through administration interface.
*/
......
......@@ -10,21 +10,12 @@
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
/**
* Tests existence of action local tasks.
* Tests action local tasks.
*
* @group Drupal
* @group Action
* @group action
*/
class ActionLocalTasksTest extends LocalTaskIntegrationTest {
public static function getInfo() {
return array(
'name' => 'Action local tasks test',
'description' => 'Test action local tasks.',
'group' => 'Action',
);
}
public function setUp() {
$this->directoryList = array('action' => 'core/modules/action');
parent::setUp();
......
......@@ -8,17 +8,11 @@
namespace Drupal\aggregator\Tests;
/**
* Tests adding aggregator feeds.
* Add feed test.
*
* @group aggregator
*/
class AddFeedTest extends AggregatorTestBase {
public static function getInfo() {
return array(
'name' => 'Add feed functionality',
'description' => 'Add feed test.',
'group' => 'Aggregator'
);
}
/**
* Creates and ensures that a feed is unique, checks source, and deletes feed.
*/
......
......@@ -8,17 +8,11 @@
namespace Drupal\aggregator\Tests;
/**
* Tests functionality of the configuration settings in the Aggregator module.
* Tests aggregator settings page.
*
* @group aggregator
*/
class AggregatorConfigurationTest extends AggregatorTestBase {
public static function getInfo() {
return array(
'name' => 'Aggregator configuration',
'description' => 'Test aggregator settings page.',
'group' => 'Aggregator',
);
}
/**
* Tests the settings form to ensure the correct default values are used.
*/
......
......@@ -8,17 +8,11 @@
namespace Drupal\aggregator\Tests;
/**
* Tests functionality of the cron process in the Aggregator module.
* Update feeds on cron.
*
* @group aggregator
*/
class AggregatorCronTest extends AggregatorTestBase {
public static function getInfo() {
return array(
'name' => 'Update on cron functionality',
'description' => 'Update feeds on cron.',
'group' => 'Aggregator'
);
}
/**
* Adds feeds and updates them via cron process.
*/
......
......@@ -10,7 +10,9 @@
use Drupal\Component\Utility\String;
/**
* Tests rendering functionality in the Aggregator module.
* Tests display of aggregator items on the page.
*
* @group aggregator
*/
class AggregatorRenderingTest extends AggregatorTestBase {
......@@ -21,14 +23,6 @@ class AggregatorRenderingTest extends AggregatorTestBase {
*/
public static $modules = array('block', 'test_page_test');
public static function getInfo() {
return array(
'name' => 'Checks display of aggregator items',
'description' => 'Checks display of aggregator items on the page.',
'group' => 'Aggregator'
);
}
/**
* Adds a feed block to the page and checks its links.
*/
......
......@@ -8,17 +8,11 @@
namespace Drupal\aggregator\Tests;
/**
* Tests functionality of removing a feed item in the Aggregator module.
* Delete feed items from a feed.
*
* @group aggregator
*/
class DeleteFeedItemTest extends AggregatorTestBase {
public static function getInfo() {
return array(
'name' => 'Delete feed item functionality',
'description' => 'Delete feed items from a feed.',
'group' => 'Aggregator'
);
}
/**
* Tests running "delete items" from 'admin/config/services/aggregator' page.
*/
......
......@@ -8,7 +8,9 @@
namespace Drupal\aggregator\Tests;
/**
* Tests functionality for removing feeds in the Aggregator module.
* Delete feed test.
*
* @group aggregator
*/
class DeleteFeedTest extends AggregatorTestBase {
......@@ -19,14 +21,6 @@ class DeleteFeedTest extends AggregatorTestBase {
*/
public static $modules = array('block');
public static function getInfo() {
return array(
'name' => 'Delete feed functionality',
'description' => 'Delete feed test.',