Revert "Issue #3268809 by quietone, Rishabh Vishwakarma, ravi.shankar, Medha Kumari, mrinalini9, JatinGupta40, smustgrave, xjm, longwave: Fix class comment doc blocks in tests for 'Drupal.Commenting.DocComment.ShortSingleLine'"
This reverts commit 040893f95f
.
merge-requests/3788/head
parent
cb0096a7cd
commit
b653e63921
|
@ -6,7 +6,8 @@ use Drupal\system\Entity\Action;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests complex actions configuration.
|
||||
* Tests complex actions configuration by adding, editing, and deleting a
|
||||
* complex action.
|
||||
*
|
||||
* @group action
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\block\Functional;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests that blocks are not added to hidden regions on theme installation.
|
||||
* Tests that a newly installed theme does not inherit blocks to its hidden
|
||||
* regions.
|
||||
*
|
||||
* @group block
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\block\Entity\Block;
|
||||
|
||||
/**
|
||||
* Tests that blocks assigned to invalid regions are disabled with a warning.
|
||||
* Tests that an active block assigned to a non-existing region triggers the
|
||||
* warning message and is disabled.
|
||||
*
|
||||
* @group block
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\block\Entity\Block;
|
||||
|
||||
/**
|
||||
* Tests per-language block configuration.
|
||||
* Tests if a block can be configured to be only visible on a particular
|
||||
* language.
|
||||
*
|
||||
* @group block
|
||||
*/
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
namespace Drupal\Tests\comment\Functional;
|
||||
|
||||
/**
|
||||
* Tests that appropriate and accessible markup is created for comment titles.
|
||||
* Tests to ensure that appropriate and accessible markup is created for comment
|
||||
* titles.
|
||||
*
|
||||
* @group comment
|
||||
*/
|
||||
|
|
|
@ -14,7 +14,8 @@ use Drupal\taxonomy\Entity\Vocabulary;
|
|||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
* Tests comment token replacement.
|
||||
* Generates text using placeholders for dummy content to check comment token
|
||||
* replacement.
|
||||
*
|
||||
* @group comment
|
||||
*/
|
||||
|
|
|
@ -12,7 +12,8 @@ use Drupal\comment\Entity\Comment;
|
|||
use Drupal\entity_test\Entity\EntityTest;
|
||||
|
||||
/**
|
||||
* Tests comment cache tag bubbling up when using the Comment list formatter.
|
||||
* Tests the bubbling up of comment cache tags when using the Comment list
|
||||
* formatter on an entity.
|
||||
*
|
||||
* @group comment
|
||||
*/
|
||||
|
|
|
@ -12,10 +12,8 @@ use Drupal\tour\Entity\Tour;
|
|||
use Drupal\user\Entity\Role;
|
||||
|
||||
/**
|
||||
* Tests that configuration objects are correct after various operations.
|
||||
*
|
||||
* The installation and removal of configuration objects in install, disable
|
||||
* and uninstall functionality is tested.
|
||||
* Tests installation and removal of configuration objects in install, disable
|
||||
* and uninstall functionality.
|
||||
*
|
||||
* @group config
|
||||
*/
|
||||
|
|
|
@ -11,10 +11,8 @@ use Drupal\language\Entity\ConfigurableLanguage;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests configuration objects before and after module install and uninstall.
|
||||
*
|
||||
* The installation and removal of configuration objects in install, disable
|
||||
* and uninstall functionality is tested.
|
||||
* Tests installation and removal of configuration objects in install, disable
|
||||
* and uninstall functionality.
|
||||
*
|
||||
* @group config
|
||||
*/
|
||||
|
|
|
@ -10,7 +10,8 @@ use Drupal\language\Entity\ConfigurableLanguage;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests contextual link display on the front page based on permissions.
|
||||
* Tests if contextual links are showing on the front page depending on
|
||||
* permissions.
|
||||
*
|
||||
* @group contextual
|
||||
*/
|
||||
|
|
|
@ -14,7 +14,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Tests\system\Functional\Menu\AssertBreadcrumbTrait;
|
||||
|
||||
/**
|
||||
* Verifies log entries and user access based on permissions.
|
||||
* Generate events and verify dblog entries; verify user access to log reports
|
||||
* based on permissions.
|
||||
*
|
||||
* @group dblog
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\dblog\Functional;
|
|||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
* Verifies user access to log reports based on permissions.
|
||||
* Generate events and verify dblog entries; verify user access to log reports
|
||||
* based on permissions. Using the dblog UI generated by a View.
|
||||
*
|
||||
* @see Drupal\dblog\Tests\DbLogTest
|
||||
*
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\field\Entity\FieldConfig;
|
|||
use Drupal\field\Entity\FieldStorageConfig;
|
||||
|
||||
/**
|
||||
* Tests deleting field storage when a module in uninstalled through the UI.
|
||||
* Delete field storages and fields during config synchronization and uninstall
|
||||
* module that provides the field type through the UI.
|
||||
*
|
||||
* @group field
|
||||
* @see \Drupal\field\ConfigImporterFieldPurger
|
||||
|
|
|
@ -10,7 +10,8 @@ use Drupal\field\Entity\FieldConfig;
|
|||
use Drupal\field\Entity\FieldStorageConfig;
|
||||
|
||||
/**
|
||||
* Tests the count of field data records.
|
||||
* Tests counting field data records and the hasData() method on
|
||||
* FieldStorageConfig entity.
|
||||
*
|
||||
* @group field
|
||||
* @see \Drupal\Core\Entity\FieldableEntityStorageInterface::countFieldData()
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\field\Entity\FieldConfig;
|
|||
use Drupal\field\Entity\FieldStorageConfig;
|
||||
|
||||
/**
|
||||
* Tests field storages and fields deletion during config synchronization.
|
||||
* Delete field storages and fields during config synchronization and uninstall
|
||||
* module that provides the field type.
|
||||
*
|
||||
* @group field
|
||||
* @see \Drupal\field\ConfigImporterFieldPurger
|
||||
|
|
|
@ -8,10 +8,8 @@ use Drupal\field\Entity\FieldConfig;
|
|||
use Drupal\file\Entity\File;
|
||||
|
||||
/**
|
||||
* Tests file field validation functions.
|
||||
*
|
||||
* Values validated include the file type, max file size, max size per node,
|
||||
* and whether the field is required.
|
||||
* Tests validation functions such as file type, max file size, max size per
|
||||
* node, and required.
|
||||
*
|
||||
* @group file
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,8 @@ use Drupal\file\FileInterface;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Provides a base class for testing files with the file_test module.
|
||||
* Base class for file tests that use the file_test module to test uploads and
|
||||
* hooks.
|
||||
*/
|
||||
abstract class FileManagedTestBase extends BrowserTestBase {
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@ use Drupal\Core\Render\BubbleableMetadata;
|
|||
use Drupal\file\Entity\File;
|
||||
|
||||
/**
|
||||
* Tests file token replacement.
|
||||
* Generates text using placeholders for dummy content to check file token
|
||||
* replacement.
|
||||
*
|
||||
* @group file
|
||||
*/
|
||||
|
|
|
@ -7,10 +7,8 @@ use Drupal\Tests\file\Functional\FileFieldCreationTrait;
|
|||
use Drupal\Tests\TestFileCreationTrait;
|
||||
|
||||
/**
|
||||
* Tests file field validation functions.
|
||||
*
|
||||
* Values validated include the file type, max file size, max size per node,
|
||||
* and whether the field is required.
|
||||
* Tests validation functions such as file type, max file size, max size per
|
||||
* node, and required.
|
||||
*
|
||||
* @group file
|
||||
*/
|
||||
|
|
|
@ -9,7 +9,8 @@ use Drupal\KernelTests\KernelTestBase;
|
|||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
* Provides a base class for testing file uploads and hook invocations.
|
||||
* Base class for file unit tests that use the file_test module to test uploads and
|
||||
* hooks.
|
||||
*/
|
||||
abstract class FileManagedUnitTestBase extends KernelTestBase {
|
||||
|
||||
|
|
|
@ -8,7 +8,9 @@ use Drupal\filter\Plugin\FilterInterface;
|
|||
use Drupal\user\RoleInterface;
|
||||
|
||||
/**
|
||||
* Tests HTML filtering with missing or skipped filters or text formats.
|
||||
* Tests the behavior of check_markup() when a filter or text format vanishes,
|
||||
* or when check_markup() is called in such a way that it is instructed to skip
|
||||
* all filters of the "FilterInterface::TYPE_HTML_RESTRICTOR" type.
|
||||
*
|
||||
* @group filter
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\language\Functional;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests that the language list is not empty when language is installed.
|
||||
* Tests enabling Language if a module exists that calls
|
||||
* LanguageManager::getLanguages() during installation.
|
||||
*
|
||||
* @group language
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\language\Entity\ConfigurableLanguage;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests the language condition plugin.
|
||||
* Tests that the language condition, provided by the language module, is
|
||||
* working properly.
|
||||
*
|
||||
* @group language
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\language\Entity\ConfigurableLanguage;
|
|||
use Drupal\language\Exception\DeleteDefaultLanguageException;
|
||||
|
||||
/**
|
||||
* Tests that a language object can be injected.
|
||||
* Compares the default language from $GLOBALS against the dependency injected
|
||||
* language object.
|
||||
*
|
||||
* @group language
|
||||
*/
|
||||
|
|
|
@ -6,9 +6,7 @@ use Drupal\language\Entity\ContentLanguageSettings;
|
|||
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
|
||||
|
||||
/**
|
||||
* Tests the migration of language-related settings.
|
||||
*
|
||||
* Settings tested include language content setting variables,
|
||||
* Tests migration of language content setting variables,
|
||||
* language_content_type_$type, i18n_node_options_* and i18n_lock_node_*.
|
||||
*
|
||||
* @group migrate_drupal_6
|
||||
|
|
|
@ -6,9 +6,7 @@ use Drupal\language\Entity\ContentLanguageSettings;
|
|||
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
|
||||
|
||||
/**
|
||||
* Tests the migration of language-related settings.
|
||||
*
|
||||
* Settings tested include the language content setting variables,
|
||||
* Tests migration of language content setting variables,
|
||||
* language_content_type_$type, i18n_node_options_* and i18n_lock_node_*.
|
||||
*
|
||||
* @group migrate_drupal_7
|
||||
|
|
|
@ -12,7 +12,8 @@ use Drupal\layout_builder\SectionComponent;
|
|||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
|
||||
/**
|
||||
* Provides an event subscriber for testing section storage alteration.
|
||||
* An event subscriber to test altering section storage via the
|
||||
* \Drupal\layout_builder\Event\PrepareLayoutEvent.
|
||||
*
|
||||
* @see \Drupal\layout_builder\Event\PrepareLayoutEvent
|
||||
* @see \Drupal\layout_builder\Element\LayoutBuilder::prepareLayout()
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Core\Language\LanguageInterface;
|
|||
use Drupal\node\NodeInterface;
|
||||
|
||||
/**
|
||||
* Tests multilingual support for content types and individual nodes.
|
||||
* Tests you can enable multilingual support on content types and configure a
|
||||
* language for a node.
|
||||
*
|
||||
* @group locale
|
||||
*/
|
||||
|
|
|
@ -9,7 +9,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Core\Language\LanguageInterface;
|
||||
|
||||
/**
|
||||
* Tests the validation of translation strings and search results.
|
||||
* Adds a new locale and translates its name. Checks the validation of
|
||||
* translation strings and search results.
|
||||
*
|
||||
* @group locale
|
||||
*/
|
||||
|
|
|
@ -15,9 +15,8 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
use Symfony\Component\Routing\Route;
|
||||
|
||||
/**
|
||||
* Ensures that rendered menu links bubble the necessary bubbleable metadata.
|
||||
*
|
||||
* This for outbound path/route processing.
|
||||
* Ensures that rendered menu links bubble the necessary bubbleable metadata
|
||||
* for outbound path/route processing.
|
||||
*
|
||||
* @group menu_link_content
|
||||
*/
|
||||
|
|
|
@ -15,10 +15,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Tests\menu_ui\Traits\MenuUiTrait;
|
||||
|
||||
/**
|
||||
* Tests the menu UI.
|
||||
*
|
||||
* This test adds a custom menu, adds menu links to the custom menu and the
|
||||
* Tools menu, checks their data, and deletes them using the UI.
|
||||
* Add a custom menu, add menu links to the custom menu and Tools menu, check
|
||||
* their data, and delete them using the UI.
|
||||
*
|
||||
* @group menu_ui
|
||||
*/
|
||||
|
|
|
@ -500,10 +500,8 @@ class StubSourcePlugin extends SourcePluginBase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Defines a stubbed source plugin with a generator as iterator.
|
||||
*
|
||||
* This stub overwrites the $skipCount, $cacheCounts, and $trackChanges
|
||||
* properties.
|
||||
* Stubbed source plugin with a generator as iterator. Also it overwrites the
|
||||
* $skipCount, $cacheCounts and $trackChanges properties.
|
||||
*/
|
||||
class StubSourceGeneratorPlugin extends StubSourcePlugin {
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\node\Functional;
|
|||
use Drupal\node\Entity\NodeType;
|
||||
|
||||
/**
|
||||
* Tests node access rebuild functions with multiple node access modules.
|
||||
* Ensures that node access rebuild functions work correctly even
|
||||
* when other modules implements hook_node_grants().
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
namespace Drupal\Tests\node\Functional;
|
||||
|
||||
/**
|
||||
* Tests the node setting for displaying author and date information.
|
||||
* Tests that the post information (submitted by Username on date) text displays
|
||||
* appropriately.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Core\Database\Database;
|
|||
use Drupal\node\NodeInterface;
|
||||
|
||||
/**
|
||||
* Tests global node CRUD operation permissions.
|
||||
* Create a node with revisions and test viewing, saving, reverting, and
|
||||
* deleting revisions for user with access to all.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -12,7 +12,8 @@ use Drupal\node\NodeInterface;
|
|||
use Drupal\Component\Serialization\Json;
|
||||
|
||||
/**
|
||||
* Tests per-content-type node CRUD operation permissions.
|
||||
* Create a node with revisions and test viewing, saving, reverting, and
|
||||
* deleting revisions for users with access for this content type.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\node\Functional;
|
|||
use Drupal\Component\Utility\Html;
|
||||
|
||||
/**
|
||||
* Tests that dangerous tags in the node title are escaped.
|
||||
* Create a node with dangerous tags in its title and test that they are
|
||||
* escaped.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,8 @@ use Drupal\user\Entity\User;
|
|||
use Drupal\field\Entity\FieldStorageConfig;
|
||||
|
||||
/**
|
||||
* Tests node access with multiple languages and two node access modules.
|
||||
* Tests node access functionality with multiple languages and two node access
|
||||
* modules.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -10,7 +10,8 @@ use Drupal\user\Entity\User;
|
|||
use Drupal\field\Entity\FieldStorageConfig;
|
||||
|
||||
/**
|
||||
* Tests multilingual node access with a language-aware module.
|
||||
* Tests node_access and select queries with node_access tag functionality with
|
||||
* multiple languages with node_access_test_language which is language-aware.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -9,7 +9,8 @@ use Drupal\node\Entity\NodeType;
|
|||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
* Tests multilingual node access with a module that is not language-aware.
|
||||
* Tests node_access and select queries with node_access tag functionality with
|
||||
* multiple languages with a test node access module that is not language-aware.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -10,7 +10,8 @@ use Drupal\node\Entity\NodeType;
|
|||
use Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests node token replacement.
|
||||
* Generates text using placeholders for dummy content to check node token
|
||||
* replacement.
|
||||
*
|
||||
* @group node
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Core\Database\Database;
|
|||
use Drupal\Core\Url;
|
||||
|
||||
/**
|
||||
* Tests modifying path aliases from the UI.
|
||||
* Add, edit, delete, and change alias and verify its consistency in the
|
||||
* database.
|
||||
*
|
||||
* @group path
|
||||
*/
|
||||
|
|
|
@ -24,8 +24,6 @@ use GuzzleHttp\RequestOptions;
|
|||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Defines a base class for testing all entity resources.
|
||||
*
|
||||
* Even though there is the generic EntityResource, it's necessary for every
|
||||
* entity type to have its own test, because they each have different fields,
|
||||
* validation constraints, et cetera. It's not because the generic case works,
|
||||
|
|
|
@ -256,8 +256,6 @@ class DateTimeIso8601NormalizerTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Provides a test class for testing DrupalDateTime.
|
||||
*
|
||||
* Note: Prophecy does not support magic methods. By subclassing and specifying
|
||||
* an explicit method, Prophecy works.
|
||||
* @see https://github.com/phpspec/prophecy/issues/338
|
||||
|
|
|
@ -178,8 +178,6 @@ class DateTimeNormalizerTest extends UnitTestCase {
|
|||
|
||||
|
||||
/**
|
||||
* Provides a test class for testing DrupalDateTime.
|
||||
*
|
||||
* Note: Prophecy does not support magic methods. By subclassing and specifying
|
||||
* an explicit method, Prophecy works.
|
||||
* @see https://github.com/phpspec/prophecy/issues/338
|
||||
|
|
|
@ -133,8 +133,6 @@ class TimestampNormalizerTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Provides a test class for testing DrupalDateTime.
|
||||
*
|
||||
* Note: Prophecy does not support magic methods. By subclassing and specifying
|
||||
* an explicit method, Prophecy works.
|
||||
* @see https://github.com/phpspec/prophecy/issues/338
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\statistics\Functional;
|
|||
use Drupal\Component\Render\FormattableMarkup;
|
||||
|
||||
/**
|
||||
* Tests statistics token replacement.
|
||||
* Generates text using placeholders for dummy content to check statistics token
|
||||
* replacement.
|
||||
*
|
||||
* @group statistics
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\ajax_forms_test\Callbacks;
|
|||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
* Builds a form where each Form API element triggers a simple Ajax callback.
|
||||
* Form builder: Builds a form that has each FAPI elements triggering a simple
|
||||
* Ajax callback.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
|
|
|
@ -5,10 +5,8 @@ namespace Drupal\module_install_class_loader_test1;
|
|||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
|
||||
/**
|
||||
* Defines an event subscriber that conditionally unsets the event list.
|
||||
*
|
||||
* @see Drupal\module_install_class_loader_test2\EventSubscriber
|
||||
* @see Drupal\Tests\system\Functional\Module\ClassLoaderTest::testMultipleModules()
|
||||
* An event subscriber that does different things depending on whether classes
|
||||
* exist.
|
||||
*/
|
||||
class EventSubscriber implements EventSubscriberInterface {
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@ use Drupal\Core\Plugin\ContextAwarePluginTrait;
|
|||
use Drupal\Core\Plugin\PluginBase;
|
||||
|
||||
/**
|
||||
* Implements a String TypedData contextual block plugin.
|
||||
* Implementation of a String TypedData contextual block plugin used by Plugin
|
||||
* API context test.
|
||||
*
|
||||
* @see \Drupal\plugin_test\Plugin\MockBlockManager
|
||||
* @see \Drupal\KernelTests\Core\Plugin\PluginTestBase
|
||||
*/
|
||||
class TypedDataStringBlock extends PluginBase implements ContextAwarePluginInterface {
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@ use Drupal\language\Entity\ConfigurableLanguage;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests modifying an entity with revisions.
|
||||
* Create a entity with revisions and test viewing, saving, reverting, and
|
||||
* deleting revisions.
|
||||
*
|
||||
* @group Entity
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Core\StreamWrapper\PublicStream;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests recursive file copy operations with the file transfer jail.
|
||||
* Tests that the jail is respected and that protocols using recursive file move
|
||||
* operations work.
|
||||
*
|
||||
* @group FileTransfer
|
||||
*/
|
||||
|
|
|
@ -6,9 +6,8 @@ use Drupal\Component\Render\FormattableMarkup;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the form API checkbox element.
|
||||
*
|
||||
* Various combinations of #default_value and #return_value are used.
|
||||
* Tests form API checkbox handling of various combinations of #default_value
|
||||
* and #return_value.
|
||||
*
|
||||
* @group Form
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,8 @@ use Drupal\language\Entity\ConfigurableLanguage;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the language selection form element.
|
||||
* Tests that the language select form element prints and submits the right
|
||||
* options.
|
||||
*
|
||||
* @group Form
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,9 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Tests\TestFileCreationTrait;
|
||||
|
||||
/**
|
||||
* Tests the removal of internal Form API elements from submitted form values.
|
||||
* Tests proper removal of submitted form values using
|
||||
* \Drupal\Core\Form\FormState::cleanValues() when having forms with elements
|
||||
* containing buttons like "managed_file".
|
||||
*
|
||||
* @group Form
|
||||
*/
|
||||
|
|
|
@ -7,9 +7,8 @@ use Drupal\Component\Render\FormattableMarkup;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the proper removal of submitted form values.
|
||||
*
|
||||
* @see \Drupal\Core\Form\FormState::cleanValues()
|
||||
* Tests proper removal of submitted form values using
|
||||
* \Drupal\Core\Form\FormState::cleanValues().
|
||||
*
|
||||
* @group Form
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Core\EventSubscriber\MainContentViewSubscriber;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests a multistep form using form storage.
|
||||
* Tests a multistep form using form storage and makes sure validation and
|
||||
* caching works right.
|
||||
*
|
||||
* The tested form puts data into the storage during the initial form
|
||||
* construction. These tests verify that there are no duplicate form
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Core\Url;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Test date formatting and time zone handling, including daylight saving time.
|
||||
* Configure date and time settings. Test date formatting and time zone
|
||||
* handling, including daylight saving time.
|
||||
*
|
||||
* @group system
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Tests\TestFileCreationTrait;
|
||||
|
||||
/**
|
||||
* Tests the theme administration user interface.
|
||||
* Tests the theme interface functionality by enabling and switching themes, and
|
||||
* using an administration theme.
|
||||
*
|
||||
* @group system
|
||||
*/
|
||||
|
|
|
@ -13,7 +13,8 @@ use Drupal\taxonomy\Entity\Term;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests XSS filtering for themed output for each entity type in all themes.
|
||||
* Tests themed output for each entity type in all available themes to ensure
|
||||
* entity labels are filtered for XSS.
|
||||
*
|
||||
* @group Theme
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\system\Functional\Theme;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests theme system initialization early in the page request.
|
||||
* Tests that the theme system can be correctly initialized early in the page
|
||||
* request.
|
||||
*
|
||||
* @group Theme
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\system\Functional\UpdateSystem;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests the hook invocation for determining update dependencies.
|
||||
* Tests that the hook invocation for determining update dependencies works
|
||||
* correctly.
|
||||
*
|
||||
* @group Update
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Tests\RequirementsPageTrait;
|
||||
|
||||
/**
|
||||
* Tests that hook_update_8000() is disallowed.
|
||||
* Tests that a module implementing hook_update_8000() causes an error to be
|
||||
* displayed on update.
|
||||
*
|
||||
* @group Update
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Tests\RequirementsPageTrait;
|
||||
|
||||
/**
|
||||
* Tests the minimum schema version when only 7.x update hooks are retained.
|
||||
* Tests that the minimum schema version is correct even if only 7.x update
|
||||
* hooks are retained .
|
||||
*
|
||||
* @group Update
|
||||
*/
|
||||
|
|
|
@ -12,10 +12,11 @@ use Drupal\Core\Url;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests the Url object.
|
||||
*
|
||||
* @covers \Drupal\Component\Utility\UrlHelper::filterQueryParameters()
|
||||
* @covers \Drupal\Core\Utility\LinkGeneratorInterface::generate()
|
||||
* Confirm that \Drupal\Core\Url,
|
||||
* \Drupal\Component\Utility\UrlHelper::filterQueryParameters(),
|
||||
* \Drupal\Component\Utility\UrlHelper::buildQuery(), and
|
||||
* \Drupal\Core\Utility\LinkGeneratorInterface::generate()
|
||||
* work correctly with various input.
|
||||
*
|
||||
* @group Common
|
||||
*/
|
||||
|
|
|
@ -9,7 +9,8 @@ use Drupal\Component\Utility\Xss;
|
|||
use Drupal\Core\Render\BubbleableMetadata;
|
||||
|
||||
/**
|
||||
* Tests token replacement.
|
||||
* Generates text using placeholders for dummy content to check token
|
||||
* replacement.
|
||||
*
|
||||
* @group system
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface;
|
|||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
* Tests the taxonomy RSS display.
|
||||
* Ensure that data added as terms appears in RSS feeds if "RSS Category" format
|
||||
* is selected.
|
||||
*
|
||||
* @group taxonomy
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface;
|
|||
use Drupal\Core\Render\BubbleableMetadata;
|
||||
|
||||
/**
|
||||
* Tests taxonomy token replacement.
|
||||
* Generates text using placeholders for dummy content to check taxonomy token
|
||||
* replacement.
|
||||
*
|
||||
* @group taxonomy
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Core\Utility\ProjectInfo;
|
|||
use Drupal\update\UpdateManagerInterface;
|
||||
|
||||
/**
|
||||
* Tests how the Update Manager handles contributed modules and themes.
|
||||
* Tests how the Update Manager module handles contributed modules and themes in
|
||||
* a series of functional tests using mock XML data.
|
||||
*
|
||||
* @group update
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\update\Functional;
|
|||
use Drupal\Core\Url;
|
||||
|
||||
/**
|
||||
* Tests the semantic version handling in the Update Manager.
|
||||
* Tests the Update Manager module through a series of functional tests using
|
||||
* mock XML data.
|
||||
*
|
||||
* @group update
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\language\Entity\ConfigurableLanguage;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests preferred language configuration and language selector access.
|
||||
* Tests whether proper language is stored for new users and access to language
|
||||
* selector.
|
||||
*
|
||||
* @group user
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\user\RoleInterface;
|
|||
use Drupal\user\Entity\Role;
|
||||
|
||||
/**
|
||||
* Verifies role permissions can be added and removed via the permissions page.
|
||||
* Verify that role permissions can be added and removed via the permissions
|
||||
* pages.
|
||||
*
|
||||
* @group user
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\user\Functional;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Verifies that sensitive information is hidden from unauthorized users.
|
||||
* Tests the user search page and verifies that sensitive information is hidden
|
||||
* from unauthorized users.
|
||||
*
|
||||
* @group user
|
||||
*/
|
||||
|
|
|
@ -10,7 +10,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
* Tests the replacement of user tokens.
|
||||
* Generates text using placeholders for dummy content to check user token
|
||||
* replacement.
|
||||
*
|
||||
* @group user
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Core\Form\FormState;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Verifies the field order in user account forms.
|
||||
* Verifies that the field order in user account forms is compatible with
|
||||
* password managers of web browsers.
|
||||
*
|
||||
* @group user
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\KernelTests\KernelTestBase;
|
|||
use Drupal\user\Entity\Role;
|
||||
|
||||
/**
|
||||
* Tests that the config schema is valid when roles are added or removed.
|
||||
* Ensures the user action for adding and removing roles have valid config
|
||||
* schema.
|
||||
*
|
||||
* @group user
|
||||
*/
|
||||
|
|
|
@ -13,7 +13,8 @@ use Drupal\user\Entity\User;
|
|||
use Drupal\user\RoleInterface;
|
||||
|
||||
/**
|
||||
* Provides test methods for user creation and authentication.
|
||||
* Provides methods to create additional test users and switch the currently
|
||||
* logged in one.
|
||||
*
|
||||
* This trait is meant to be used only by test classes.
|
||||
*/
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
namespace Drupal\Tests\views\Functional\Wizard;
|
||||
|
||||
/**
|
||||
* Tests that the views wizard can specify the number of items per page.
|
||||
* Tests the ability of the views wizard to specify the number of items per
|
||||
* page.
|
||||
*
|
||||
* @group views
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Tests\views\Kernel\ViewsKernelTestBase;
|
|||
use Drupal\views\Views;
|
||||
|
||||
/**
|
||||
* Tests core's BooleanOperatorString views filter handler.
|
||||
* Tests the core Drupal\views\Plugin\views\filter\BooleanOperatorString
|
||||
* handler.
|
||||
*
|
||||
* @group views
|
||||
* @see \Drupal\views\Plugin\views\filter\BooleanOperatorString
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\Tests\drupal_system_listing_compatible_test\Kernel;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Verifies that tests in installation profile modules are found.
|
||||
* Verifies that tests in installation profile modules are found and may use
|
||||
* another profile for running tests.
|
||||
*
|
||||
* @group drupal_system_listing_compatible_test
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,8 @@ use Drupal\field\Entity\FieldStorageConfig;
|
|||
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
|
||||
|
||||
/**
|
||||
* Tests AJAX-enabled forms when multiple instances of the form are on a page.
|
||||
* Tests that AJAX-enabled forms work when multiple instances of the same form
|
||||
* are on a page.
|
||||
*
|
||||
* @group Ajax
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,8 @@ namespace Drupal\FunctionalTests;
|
|||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
/**
|
||||
* Tests BrowserTestBase's treatment of hook_install() during setup.
|
||||
*
|
||||
* This test will check BrowserTestBase's treatment of hook_install during
|
||||
* setUp.
|
||||
* Image module is used for test.
|
||||
*
|
||||
* @group browsertestbase
|
||||
|
|
|
@ -5,7 +5,8 @@ namespace Drupal\FunctionalTests\Installer;
|
|||
use Drupal\Core\Database\Database;
|
||||
|
||||
/**
|
||||
* Tests installation with database information in an existing settings file.
|
||||
* Tests the installer with an existing settings file with database connection
|
||||
* info.
|
||||
*
|
||||
* @group Installer
|
||||
*/
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
namespace Drupal\FunctionalTests\Installer;
|
||||
|
||||
/**
|
||||
* Verifies that the installer uses the profile's site configuration.
|
||||
* Verifies that the installer defaults to the existing site email address and
|
||||
* timezone, if they were provided by the install profile.
|
||||
*
|
||||
* @group Installer
|
||||
*/
|
||||
|
|
|
@ -7,10 +7,8 @@ use Drupal\Tests\BrowserTestBase;
|
|||
use Drupal\Core\Test\AssertMailTrait;
|
||||
|
||||
/**
|
||||
* Tests the collection of emails during testing.
|
||||
*
|
||||
* The test mail collector, test.mail.collector, intercepts any email sent
|
||||
* during a test so it does not leave the test server.
|
||||
* Tests the SimpleTest email capturing logic, the assertMail assertion and the
|
||||
* drupalGetMails function.
|
||||
*
|
||||
* @group browsertestbase
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Component\Utility\Bytes;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests format_size().
|
||||
* Parse a predefined amount of bytes and compare the output with the expected
|
||||
* value.
|
||||
*
|
||||
* @group Common
|
||||
*/
|
||||
|
|
|
@ -6,11 +6,8 @@ use Drupal\Component\Utility\UrlHelper;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests XSS filtering.
|
||||
*
|
||||
* @see \Drupal\Component\Utility\Xss::filter()
|
||||
* @see \Drupal\Component\Utility\UrlHelper::filterBadProtocol
|
||||
* @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols
|
||||
* Confirm that \Drupal\Component\Utility\Xss::filter() and check_url() work
|
||||
* correctly, including invalid multi-byte sequences.
|
||||
*
|
||||
* @group Common
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Core\Config\ConfigDuplicateUUIDException;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests configuration entity storage.
|
||||
* Tests sync and importing config entities with IDs and UUIDs that match
|
||||
* existing config.
|
||||
*
|
||||
* @group config
|
||||
*/
|
||||
|
|
|
@ -6,13 +6,8 @@ use Drupal\Core\Language\Language;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests that config overrides are applied in the correct order.
|
||||
*
|
||||
* Overrides should be applied in the following order, from lowest priority
|
||||
* to highest:
|
||||
* - Language overrides.
|
||||
* - Module overrides.
|
||||
* - settings.php overrides.
|
||||
* Tests that language, module and settings.php are applied in the correct
|
||||
* order.
|
||||
*
|
||||
* @group config
|
||||
*/
|
||||
|
|
|
@ -16,8 +16,6 @@ use Drupal\user\Entity\User;
|
|||
use Drupal\file\Entity\File;
|
||||
|
||||
/**
|
||||
* Tests entity CRUD via hooks.
|
||||
*
|
||||
* Tests the invocation of hooks when creating, inserting, loading, updating or
|
||||
* deleting an entity.
|
||||
*
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Core\DependencyInjection\ContainerBuilder;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Provides file-specific assertions and helper functions.
|
||||
* Base class for file tests that adds some additional file specific
|
||||
* assertions and helper functions.
|
||||
*/
|
||||
abstract class FileTestBase extends KernelTestBase {
|
||||
|
||||
|
|
|
@ -9,10 +9,8 @@ use Drupal\Core\Site\Settings;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests FormBuilder caching.
|
||||
*
|
||||
* @covers \Drupal\Core\Form\FormBuilder::getCache
|
||||
* @covers \Drupal\Core\Form\FormBuilder::setCache
|
||||
* Tests \Drupal::formBuilder()->setCache() and
|
||||
* \Drupal::formBuilder()->getCache().
|
||||
*
|
||||
* @group Form
|
||||
*/
|
||||
|
|
|
@ -9,7 +9,8 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
|
||||
/**
|
||||
* Tests system.module's request path condition.
|
||||
* Tests that the Request Path Condition, provided by the system module, is
|
||||
* working properly.
|
||||
*
|
||||
* @group Plugin
|
||||
*/
|
||||
|
|
|
@ -6,7 +6,8 @@ use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery;
|
|||
use Drupal\Core\StringTranslation\TranslatableMarkup;
|
||||
|
||||
/**
|
||||
* Tests discovery of annotated plugins in a custom directory.
|
||||
* Tests that plugins in a custom directory are correctly discovered using
|
||||
* annotated classes.
|
||||
*
|
||||
* @group Plugin
|
||||
*/
|
||||
|
|
|
@ -7,7 +7,8 @@ use Drupal\Core\TypedData\MapDataDefinition;
|
|||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests ComplexData validation with both valid and invalid values.
|
||||
* Tests ComplexData validation constraint with both valid and invalid values
|
||||
* for a key.
|
||||
*
|
||||
* @group Validation
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue