Issue #2262195 by sun: Various test classes are missing phpDoc.
parent
3d31d12b0e
commit
8494b0632a
|
@ -9,6 +9,9 @@ namespace Drupal\ban\Tests;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests IP address banning.
|
||||
*/
|
||||
class IpAddressBlockingTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\block\Tests;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests the block administration page for a non-default theme.
|
||||
*/
|
||||
class NonDefaultBlockAdminTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\comment\CommentInterface;
|
|||
use Drupal\views\Views;
|
||||
use Drupal\views\Tests\ViewTestBase;
|
||||
|
||||
/**
|
||||
* Tests the Recent Comments default view.
|
||||
*/
|
||||
class DefaultViewRecentComments extends ViewTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\config\Tests;
|
|||
use Drupal\Core\Config\StorageComparer;
|
||||
use Drupal\system\Tests\Module\ModuleTestBase;
|
||||
|
||||
/**
|
||||
* Tests importing all configuration from Standard profile and all core modules.
|
||||
*/
|
||||
class ConfigImportAllTest extends ModuleTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\field\Tests;
|
|||
use Drupal\Core\Entity\EntityStorageException;
|
||||
use Drupal\field\FieldException;
|
||||
|
||||
/**
|
||||
* Tests field CRUD operations.
|
||||
*/
|
||||
class CrudTest extends FieldUnitTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\field\Tests;
|
|||
|
||||
use Drupal\Core\Language\Language;
|
||||
|
||||
/**
|
||||
* Tests the field display API.
|
||||
*/
|
||||
class DisplayApiTest extends FieldUnitTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\field\Tests;
|
|||
|
||||
use Drupal\Core\Language\Language;
|
||||
|
||||
/**
|
||||
* Tests field information for fields, instances, and bundles.
|
||||
*/
|
||||
class FieldInfoTest extends FieldUnitTestBase {
|
||||
|
||||
public static function getInfo() {
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\field\Tests;
|
|||
use Drupal\Core\Entity\EntityStorageException;
|
||||
use Drupal\field\FieldException;
|
||||
|
||||
/**
|
||||
* Tests field instance CRUD (attaching fields to entities).
|
||||
*/
|
||||
class FieldInstanceCrudTest extends FieldUnitTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\field\Tests;
|
|||
|
||||
use Drupal\Core\Field\FieldDefinitionInterface;
|
||||
|
||||
/**
|
||||
* Tests field form handling.
|
||||
*/
|
||||
class FormTest extends FieldTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\field\Tests;
|
|||
|
||||
use Drupal\Core\Field\FieldDefinitionInterface;
|
||||
|
||||
/**
|
||||
* Tests field elements in nested forms.
|
||||
*/
|
||||
class NestedFormTest extends FieldTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,6 +12,9 @@ use Drupal\Core\Language\Language;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of aggregator feed entities.
|
||||
*/
|
||||
class MigrateAggregatorFeedTest extends MigrateDrupalTestBase {
|
||||
|
||||
static $modules = array('aggregator');
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of filesystem variables to configuration.
|
||||
*/
|
||||
class MigrateSystemFileTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of image GD toolkit variables to configuration.
|
||||
*/
|
||||
class MigrateSystemImageGdTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of image toolkit variables to configuration.
|
||||
*/
|
||||
class MigrateSystemImageTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of system maintenance mode variables to configuration.
|
||||
*/
|
||||
class MigrateSystemMaintenanceTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of system performance variables to configuration.
|
||||
*/
|
||||
class MigrateSystemPerformanceTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of system RSS/feed variables to configuration.
|
||||
*/
|
||||
class MigrateSystemRssTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of system site variables to configuration.
|
||||
*/
|
||||
class MigrateSystemSiteTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\migrate\MigrateMessage;
|
|||
use Drupal\migrate\MigrateExecutable;
|
||||
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
|
||||
|
||||
/**
|
||||
* Tests migration of system theme variables to configuration.
|
||||
*/
|
||||
class MigrateSystemThemeTest extends MigrateDrupalTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
|
||||
namespace Drupal\node\Tests\Views;
|
||||
|
||||
/**
|
||||
* Tests Node module's Views integration.
|
||||
*/
|
||||
class NodeIntegrationTest extends NodeTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
|
||||
namespace Drupal\serialization\Tests;
|
||||
|
||||
/**
|
||||
* Tests the entity reference resolver.
|
||||
*/
|
||||
class EntityResolverTest extends NormalizerTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\simpletest\Tests;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests Simpletest email capturing (TestMailCollector) and assertion methods.
|
||||
*/
|
||||
class MailCaptureTest extends WebTestBase {
|
||||
/**
|
||||
* Implement getInfo().
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\simpletest\Tests;
|
|||
use Drupal\Core\Database\Driver\pgsql\Select;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests the Simpletest UI test runner and internal browser.
|
||||
*/
|
||||
class SimpleTestTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\system\Tests\Datetime;
|
|||
use Drupal\simpletest\WebTestBase;
|
||||
use Drupal\Core\Datetime\DrupalDateTime;
|
||||
|
||||
/**
|
||||
* Tests DrupalDateTime functionality.
|
||||
*/
|
||||
class DrupalDateTimeTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,6 +12,9 @@ use Drupal\Component\Utility\String;
|
|||
use Drupal\Core\Render\Element;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests form element validation.
|
||||
*/
|
||||
class FormTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\system\Tests\Session;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests session handling.
|
||||
*/
|
||||
class SessionTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\system\Tests\System;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests the fingerprinting "Generator" HTML meta tag.
|
||||
*/
|
||||
class AdminMetaTagTest extends WebTestBase {
|
||||
/**
|
||||
* Implement getInfo().
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\system\Tests\System;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests cron runs.
|
||||
*/
|
||||
class CronRunTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\system\Tests\System;
|
|||
use Drupal\Component\Utility\String;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests default mobile meta tags on HTML pages.
|
||||
*/
|
||||
class DefaultMobileMetaTagsTest extends WebTestBase {
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\system\Tests\System;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests "404 Not found" pages and custom 404 pages.
|
||||
*/
|
||||
class PageNotFoundTest extends WebTestBase {
|
||||
protected $admin_user;
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\Component\Utility\Xss;
|
|||
use Drupal\Core\Utility\Title;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests HTML output escaping of page title, site name, and slogan.
|
||||
*/
|
||||
class PageTitleTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\user\Tests;
|
|||
use Drupal\system\Tests\System\SystemConfigFormTestBase;
|
||||
use Drupal\user\AccountSettingsForm;
|
||||
|
||||
/**
|
||||
* Tests the administrative user settings configuration form.
|
||||
*/
|
||||
class UserAdminSettingsFormTest extends SystemConfigFormTestBase {
|
||||
|
||||
public static function getInfo() {
|
||||
|
|
|
@ -9,6 +9,9 @@ namespace Drupal\user\Tests;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests the user administration UI.
|
||||
*/
|
||||
class UserAdminTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,8 +9,8 @@ namespace Drupal\user\Tests;
|
|||
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/*
|
||||
* Test that a user, having editing their own account, can still log in.
|
||||
/**
|
||||
* Tests user login after editing own user account.
|
||||
*/
|
||||
class UserEditedOwnAccountTest extends WebTestBase {
|
||||
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\user\Tests;
|
|||
use Drupal\simpletest\WebTestBase;
|
||||
use Drupal\user\RoleStorage;
|
||||
|
||||
/**
|
||||
* Tests the user role permission UI.
|
||||
*/
|
||||
class UserPermissionsTest extends WebTestBase {
|
||||
protected $admin_user;
|
||||
protected $rid;
|
||||
|
|
|
@ -11,6 +11,9 @@ use Drupal\Core\Field\FieldDefinitionInterface;
|
|||
use Drupal\Core\Language\Language;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Tests user registration.
|
||||
*/
|
||||
class UserRegistrationTest extends WebTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
|
||||
namespace Drupal\views\Tests\Plugin;
|
||||
|
||||
/**
|
||||
* Tests the table style views plugin.
|
||||
*/
|
||||
class StyleTableTest extends PluginTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace Drupal\views\Tests;
|
|||
use Drupal\views\Tests\ViewTestBase;
|
||||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
* Tests general rendering of a view.
|
||||
*/
|
||||
class ViewRenderTest extends ViewTestBase {
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,6 +13,9 @@ use Drupal\views\Entity\View;
|
|||
use Drupal\views\ViewExecutableFactory;
|
||||
use Drupal\Core\DependencyInjection\ContainerBuilder;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \Drupal\views\Views
|
||||
*/
|
||||
class ViewsTest extends UnitTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
|
@ -55,6 +58,8 @@ class ViewsTest extends UnitTestCase {
|
|||
|
||||
/**
|
||||
* Tests the getView() method.
|
||||
*
|
||||
* @covers ::getView
|
||||
*/
|
||||
public function testGetView() {
|
||||
$executable = Views::getView('test_view');
|
||||
|
|
|
@ -14,6 +14,9 @@ use Drupal\views\Entity\View;
|
|||
use Drupal\views\ViewExecutableFactory;
|
||||
use Drupal\views_ui\ViewListBuilder;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \Drupal\views_ui\ViewListBuilder
|
||||
*/
|
||||
class ViewListBuilderTest extends UnitTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
|
@ -28,6 +31,7 @@ class ViewListBuilderTest extends UnitTestCase {
|
|||
* Tests the listing of displays on a views list builder.
|
||||
*
|
||||
* @see \Drupal\views_ui\ViewListBuilder::getDisplaysList()
|
||||
* @covers ::buildRow
|
||||
*/
|
||||
public function testBuildRowEntityList() {
|
||||
$storage = $this->getMockBuilder('Drupal\Core\Config\Entity\ConfigEntityStorage')
|
||||
|
|
Loading…
Reference in New Issue