Issue #3133162 by jungle, ravi.shankar, Deepak Goyal, Neslee Canil Pinto, anmolgoyal74, xjm, Kristen Pol: Replace the start verb Test with Tests in method comments of tests

(cherry picked from commit f7747f85310b790bbb309c8b62fc14b3ce52551b)
merge-requests/686/head^2
catch 2021-05-24 14:02:30 +01:00
parent a8ac5ce5d6
commit 6f49625c5c
474 changed files with 873 additions and 864 deletions

View File

@ -23,7 +23,7 @@ class MigrateActionsTest extends MigrateDrupal6TestBase {
}
/**
* Test Drupal 6 action migration to Drupal 8.
* Tests Drupal 6 action migration to Drupal 8.
*/
public function testActions() {
// Test default actions.

View File

@ -23,7 +23,7 @@ class MigrateActionsTest extends MigrateDrupal7TestBase {
}
/**
* Test Drupal 7 action migration to Drupal 8.
* Tests Drupal 7 action migration to Drupal 8.
*/
public function testActions() {
// Test default actions.

View File

@ -28,7 +28,7 @@ class FeedFetcherPluginTest extends AggregatorTestBase {
}
/**
* Test fetching functionality.
* Tests fetching functionality.
*/
public function testfetch() {
// Create feed with local url.

View File

@ -31,7 +31,7 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
}
/**
* Test processing functionality.
* Tests processing functionality.
*/
public function testProcess() {
$feed = $this->createFeed();
@ -43,7 +43,7 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
}
/**
* Test deleting functionality.
* Tests deleting functionality.
*/
public function testDelete() {
$feed = $this->createFeed();
@ -55,7 +55,7 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
}
/**
* Test post-processing functionality.
* Tests post-processing functionality.
*/
public function testPostProcess() {
$feed = $this->createFeed(NULL, ['refresh' => 1800]);

View File

@ -28,7 +28,7 @@ class MigrateAggregatorItemTest extends MigrateDrupal6TestBase {
}
/**
* Test Drupal 6 aggregator item migration to Drupal 8.
* Tests Drupal 6 aggregator item migration to Drupal 8.
*/
public function testAggregatorItem() {
/** @var \Drupal\aggregator\Entity\Item $item */

View File

@ -29,7 +29,7 @@ class MigrateAggregatorItemTest extends MigrateDrupal7TestBase {
}
/**
* Test Drupal 7 aggregator item migration to Drupal 8.
* Tests Drupal 7 aggregator item migration to Drupal 8.
*/
public function testAggregatorItem() {
// Since the feed items can change as the fixture is updated normally,

View File

@ -71,7 +71,7 @@ class AggregatorPluginSettingsBaseTest extends UnitTestCase {
}
/**
* Test for AggregatorPluginSettingsBase.
* Tests for AggregatorPluginSettingsBase.
*
* Ensure that the settings form calls build, validate and submit methods on
* plugins that extend AggregatorPluginSettingsBase.

View File

@ -35,7 +35,7 @@ class BasicAuthTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
/**
* Test http basic authentication.
* Tests http basic authentication.
*/
public function testBasicAuth() {
// Enable page caching.
@ -91,7 +91,7 @@ class BasicAuthTest extends BrowserTestBase {
}
/**
* Test the global login flood control.
* Tests the global login flood control.
*/
public function testGlobalLoginFloodControl() {
$this->config('user.flood')
@ -116,7 +116,7 @@ class BasicAuthTest extends BrowserTestBase {
}
/**
* Test the per-user login flood control.
* Tests the per-user login flood control.
*/
public function testPerUserLoginFloodControl() {
$this->config('user.flood')

View File

@ -75,7 +75,7 @@ class BlockCacheTest extends BrowserTestBase {
}
/**
* Test "user.roles" cache context.
* Tests "user.roles" cache context.
*/
public function testCachePerRole() {
\Drupal::state()->set('block_test.cache_contexts', ['user.roles']);
@ -127,7 +127,7 @@ class BlockCacheTest extends BrowserTestBase {
}
/**
* Test a cacheable block without any additional cache context.
* Tests a cacheable block without any additional cache context.
*/
public function testCachePermissions() {
// user.permissions is a required context, so a user with different
@ -155,7 +155,7 @@ class BlockCacheTest extends BrowserTestBase {
}
/**
* Test non-cacheable block.
* Tests non-cacheable block.
*/
public function testNoCache() {
\Drupal::state()->set('block_test.cache_max_age', 0);
@ -176,7 +176,7 @@ class BlockCacheTest extends BrowserTestBase {
}
/**
* Test "user" cache context.
* Tests "user" cache context.
*/
public function testCachePerUser() {
\Drupal::state()->set('block_test.cache_contexts', ['user']);
@ -208,7 +208,7 @@ class BlockCacheTest extends BrowserTestBase {
}
/**
* Test "url" cache context.
* Tests "url" cache context.
*/
public function testCachePerPage() {
\Drupal::state()->set('block_test.cache_contexts', ['url']);

View File

@ -35,7 +35,7 @@ class BlockFormInBlockTest extends BrowserTestBase {
}
/**
* Test to see if form in block's redirect isn't cached.
* Tests to see if form in block's redirect isn't cached.
*/
public function testCachePerPage() {
$form_values = ['email' => 'test@example.com'];
@ -65,7 +65,7 @@ class BlockFormInBlockTest extends BrowserTestBase {
}
/**
* Test the actual placeholders.
* Tests the actual placeholders.
*/
public function testPlaceholders() {
$this->drupalGet('test-multiple-forms');

View File

@ -105,7 +105,7 @@ class BlockTest extends BlockTestBase {
}
/**
* Test block visibility when leaving "pages" textarea empty.
* Tests block visibility when leaving "pages" textarea empty.
*/
public function testBlockVisibilityListedEmpty() {
$block_name = 'system_powered_by_block';
@ -186,7 +186,7 @@ class BlockTest extends BlockTestBase {
}
/**
* Test configuring and moving a module-define block to specific regions.
* Tests configuring and moving a module-define block to specific regions.
*/
public function testBlock() {
// Place page title block to test error messages.
@ -278,7 +278,7 @@ class BlockTest extends BlockTestBase {
}
/**
* Test block display of theme titles.
* Tests block display of theme titles.
*/
public function testThemeName() {
// Enable the help block.
@ -294,7 +294,7 @@ class BlockTest extends BlockTestBase {
}
/**
* Test block title display settings.
* Tests block title display settings.
*/
public function testHideBlockTitle() {
$block_name = 'system_powered_by_block';
@ -364,7 +364,7 @@ class BlockTest extends BlockTestBase {
}
/**
* Test that cache tags are properly set and bubbled up to the page cache.
* Tests that cache tags are properly set and bubbled up to the page cache.
*
* Verify that invalidation of these cache tags works:
* - "block:<block ID>"

View File

@ -87,7 +87,7 @@ class BlockUiTest extends BrowserTestBase {
}
/**
* Test block demo page exists and functions correctly.
* Tests block demo page exists and functions correctly.
*/
public function testBlockDemoUiPage() {
$this->drupalPlaceBlock('help_block', ['region' => 'help']);
@ -107,7 +107,7 @@ class BlockUiTest extends BrowserTestBase {
}
/**
* Test block admin page exists and functions correctly.
* Tests block admin page exists and functions correctly.
*/
public function testBlockAdminUiPage() {
// Visit the blocks admin ui.

View File

@ -33,7 +33,7 @@ class NonDefaultBlockAdminTest extends BrowserTestBase {
}
/**
* Test non-default theme admin.
* Tests non-default theme admin.
*/
public function testNonDefaultBlockAdmin() {
$admin_user = $this->drupalCreateUser([

View File

@ -195,7 +195,7 @@ class DisplayBlockTest extends ViewTestBase {
}
/**
* Test the block form for a Views block.
* Tests the block form for a Views block.
*/
public function testViewsBlockForm() {
$this->drupalLogin($this->drupalCreateUser(['administer blocks']));

View File

@ -16,7 +16,7 @@ class BlockInterfaceTest extends KernelTestBase {
protected static $modules = ['system', 'block', 'block_test', 'user'];
/**
* Test configuration and subsequent form() and build() method calls.
* Tests configuration and subsequent form() and build() method calls.
*
* This test is attempting to test the existing block plugin api and all
* functionality that is expected to remain consistent. The arrays that are

View File

@ -221,7 +221,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
}
/**
* Test deleting a block.
* Tests deleting a block.
*/
public function testBlockDelete() {
// Create a block.
@ -280,7 +280,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
}
/**
* Test that placed content blocks create a dependency in the block placement.
* Tests placed content blocks create a dependency in the block placement.
*/
public function testConfigDependencies() {
$block = $this->createBlockContent();

View File

@ -140,7 +140,7 @@ class BlockContentEntityReferenceSelectionTest extends KernelTestBase {
}
/**
* Test with no conditions set.
* Tests with no conditions set.
*
* @throws \Drupal\Core\Entity\EntityStorageException
*/

View File

@ -42,7 +42,7 @@ class DependentAccessTest extends UnitTestCase {
}
/**
* Test that the previous dependency is replaced when using set.
* Tests that the previous dependency is replaced when using set.
*
* @covers ::setAccessDependency
*

View File

@ -155,7 +155,7 @@ class BookBreadcrumbTest extends BrowserTestBase {
}
/**
* Test that the breadcrumb is updated when book content changes.
* Tests that the breadcrumb is updated when book content changes.
*/
public function testBreadcrumbTitleUpdates() {
// Create a new book.
@ -190,7 +190,7 @@ class BookBreadcrumbTest extends BrowserTestBase {
}
/**
* Test that the breadcrumb is updated when book access changes.
* Tests that the breadcrumb is updated when book access changes.
*/
public function testBreadcrumbAccessUpdates() {
// Create a new book.

View File

@ -21,7 +21,7 @@ class BookInstallTest extends KernelTestBase {
];
/**
* Test Book install with pre-existing content type.
* Tests Book install with pre-existing content type.
*
* Tests that Book module can be installed if content type with machine name
* 'book' already exists.

View File

@ -28,7 +28,7 @@ class BreakpointDiscoveryTest extends KernelTestBase {
}
/**
* Test the breakpoint group created for a theme.
* Tests the breakpoint group created for a theme.
*/
public function testThemeBreakpoints() {
// Verify the breakpoint group for breakpoint_theme_test was created.
@ -93,7 +93,7 @@ class BreakpointDiscoveryTest extends KernelTestBase {
}
/**
* Test the custom breakpoint group provided by a theme and a module.
* Tests the custom breakpoint group provided by a theme and a module.
*/
public function testCustomBreakpointGroups() {
// Verify the breakpoint group for breakpoint_theme_test.group2 was created.
@ -145,7 +145,7 @@ class BreakpointDiscoveryTest extends KernelTestBase {
}
/**
* Test the breakpoint group created for a module.
* Tests the breakpoint group created for a module.
*/
public function testModuleBreakpoints() {
$expected_breakpoints = [
@ -181,7 +181,7 @@ class BreakpointDiscoveryTest extends KernelTestBase {
}
/**
* Test the collection of breakpoint groups.
* Tests the collection of breakpoint groups.
*/
public function testBreakpointGroups() {
$expected = [

View File

@ -84,7 +84,7 @@ class InternalTest extends KernelTestBase {
}
/**
* Test the format tags settings.
* Tests the format tags settings.
*
* @dataProvider formatTagsSettingsTestCases
*/

View File

@ -180,7 +180,7 @@ class ColorTest extends BrowserTestBase {
}
/**
* Test whether the custom logo is used in the color preview.
* Tests whether the custom logo is used in the color preview.
*/
public function testLogoSettingOverride() {
$this->drupalLogin($this->bigUser);
@ -196,7 +196,7 @@ class ColorTest extends BrowserTestBase {
}
/**
* Test whether the scheme can be set, viewed anonymously and reset.
* Tests whether the scheme can be set, viewed anonymously and reset.
*/
public function testOverrideAndResetScheme() {
$settings_path = 'admin/appearance/settings/bartik';

View File

@ -27,7 +27,7 @@ class CommentAdminTest extends CommentTestBase {
}
/**
* Test comment approval functionality through admin/content/comment.
* Tests comment approval functionality through admin/content/comment.
*/
public function testApprovalAdminInterface() {
// Set anonymous comments to require approval.

View File

@ -96,7 +96,7 @@ class CommentCacheTagsTest extends EntityWithUriCacheTagsTestBase {
}
/**
* Test that comments correctly invalidate the cache tag of their host entity.
* Tests that comments invalidate the cache tag of their host entity.
*/
public function testCommentEntity() {
$this->verifyPageCache($this->entityTestCamelid->toUrl(), 'MISS');

View File

@ -230,7 +230,7 @@ class CommentInterfaceTest extends CommentTestBase {
}
/**
* Test that the subject is automatically filled if disabled or left blank.
* Tests that the subject is automatically filled if disabled or left blank.
*
* When the subject field is blank or disabled, the first 29 characters of the
* comment body are used for the subject. If this would break within a word,
@ -253,7 +253,7 @@ class CommentInterfaceTest extends CommentTestBase {
}
/**
* Test that automatic subject is correctly created from HTML comment text.
* Tests that automatic subject is correctly created from HTML comment text.
*
* This is the same test as in CommentInterfaceTest::testAutoFilledSubject()
* with the additional check that HTML is stripped appropriately prior to

View File

@ -96,7 +96,7 @@ class CommentLanguageTest extends BrowserTestBase {
}
/**
* Test that comment language is properly set.
* Tests that comment language is properly set.
*/
public function testCommentLanguage() {

View File

@ -46,7 +46,7 @@ class CommentNodeAccessTest extends CommentTestBase {
}
/**
* Test that threaded comments can be viewed.
* Tests that threaded comments can be viewed.
*/
public function testThreadedCommentView() {
// Set comments to have subject required and preview disabled.

View File

@ -36,7 +36,7 @@ class CommentAdminTest extends CommentBrowserTestBase {
}
/**
* Test comment approval functionality through admin/content/comment.
* Tests comment approval functionality through admin/content/comment.
*/
public function testApprovalAdminInterface() {
// Set anonymous comments to require approval.

View File

@ -22,7 +22,7 @@ class CommentOperationsTest extends CommentTestBase {
protected $defaultTheme = 'classy';
/**
* Test the operations field plugin.
* Tests the operations field plugin.
*/
public function testCommentOperations() {
$admin_account = $this->drupalCreateUser(['administer comments']);

View File

@ -58,7 +58,7 @@ class CommentRestExportTest extends CommentTestBase {
}
/**
* Test comment row.
* Tests comment row.
*/
public function testCommentRestExport() {
$this->drupalGet(sprintf('node/%d/comments', $this->nodeUserCommented->id()), ['query' => ['_format' => 'hal_json']]);

View File

@ -22,7 +22,7 @@ class CommentRowTest extends CommentTestBase {
public static $testViews = ['test_comment_row'];
/**
* Test comment row.
* Tests comment row.
*/
public function testCommentRow() {
$this->drupalGet('test-comment-row');

View File

@ -29,7 +29,7 @@ class NodeCommentsTest extends CommentTestBase {
public static $testViews = ['test_new_comments', 'test_comment_count'];
/**
* Test the new comments field plugin.
* Tests the new comments field plugin.
*/
public function testNewComments() {
$this->drupalGet('test-new-comments');

View File

@ -23,7 +23,7 @@ class RowRssTest extends CommentTestBase {
public static $testViews = ['test_comment_rss'];
/**
* Test comment rss output.
* Tests comment rss output.
*/
public function testRssRow() {
$this->drupalGet('test-comment-rss');

View File

@ -56,7 +56,7 @@ class CommentBundlesTest extends KernelTestBase {
}
/**
* Test that the entity_id field is set correctly for each comment bundle.
* Tests that the entity_id field is set correctly for each comment bundle.
*/
public function testEntityIdField() {
$field_definitions = [];

View File

@ -91,7 +91,7 @@ class CommentFieldAccessTest extends EntityKernelTestBase {
}
/**
* Test permissions on comment fields.
* Tests permissions on comment fields.
*/
public function testAccessToAdministrativeFields() {
// Create a comment type.

View File

@ -147,7 +147,7 @@ class CommentIntegrationTest extends KernelTestBase {
}
/**
* Test the default owner of comment entities.
* Tests the default owner of comment entities.
*/
public function testCommentDefaultOwner() {
$comment = Comment::create([

View File

@ -69,7 +69,7 @@ class MigrateCommentFieldInstanceTest extends MigrateDrupal6TestBase {
}
/**
* Test the migrated field instance values.
* Tests the migrated field instance values.
*/
public function testMigration() {
$this->assertEntity('article', 'comment_node_article', 2, 1, 50, 0, FALSE, 1);

View File

@ -49,7 +49,7 @@ class CommentFieldNameTest extends KernelTestBase {
public static $testViews = ['test_comment_field_name'];
/**
* Test comment field name.
* Tests comment field name.
*/
public function testCommentFieldName() {
$renderer = $this->container->get('renderer');

View File

@ -42,7 +42,7 @@ class CommentLinksTest extends CommentViewsKernelTestBase {
}
/**
* Test the comment approve link.
* Tests the comment approve link.
*/
public function testLinkApprove() {
$host = EntityTest::create(['name' => $this->randomString()]);
@ -108,7 +108,7 @@ class CommentLinksTest extends CommentViewsKernelTestBase {
}
/**
* Test the comment reply link.
* Tests the comment reply link.
*/
public function testLinkReply() {
$this->enableModules(['field']);

View File

@ -102,7 +102,7 @@ class CommentUserNameTest extends ViewsKernelTestBase {
}
/**
* Test the username formatter.
* Tests the username formatter.
*/
public function testUsername() {
$view_id = $this->randomMachineName();

View File

@ -90,7 +90,7 @@ class CommentLinkBuilderTest extends UnitTestCase {
}
/**
* Test the buildCommentedEntityLinks method.
* Tests the buildCommentedEntityLinks method.
*
* @param \Drupal\node\NodeInterface|\PHPUnit\Framework\MockObject\MockObject $node
* Mock node.

View File

@ -15,7 +15,7 @@ use Symfony\Component\HttpFoundation\RequestStack;
class CommentLockTest extends UnitTestCase {
/**
* Test the lock behavior.
* Tests the lock behavior.
*/
public function testLocks() {
$container = new ContainerBuilder();

View File

@ -24,7 +24,7 @@ class ConfigDraggableListBuilderTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
/**
* Test draggable lists.
* Tests draggable lists.
*/
public function testDraggableList() {
$this->drupalLogin($this->drupalCreateUser(['administer permissions']));

View File

@ -250,7 +250,7 @@ class ConfigEntityListTest extends BrowserTestBase {
}
/**
* Test paging.
* Tests paging.
*/
public function testPager() {
$this->drupalLogin($this->drupalCreateUser([

View File

@ -634,7 +634,8 @@ class ConfigTranslationUiTest extends BrowserTestBase {
}
/**
* Test the number of source elements for plural strings in config translation forms.
* Tests the number of source elements for plural strings in config
* translation forms.
*/
public function testPluralConfigStringsSourceElements() {
$this->drupalLogin($this->adminUser);
@ -677,7 +678,7 @@ class ConfigTranslationUiTest extends BrowserTestBase {
}
/**
* Test translation of plural strings with multiple plural forms in config.
* Tests translation of plural strings with multiple plural forms in config.
*/
public function testPluralConfigStrings() {
$this->drupalLogin($this->adminUser);
@ -804,7 +805,7 @@ class ConfigTranslationUiTest extends BrowserTestBase {
}
/**
* Test translation storage in locale storage.
* Tests translation storage in locale storage.
*/
public function testLocaleDBStorage() {
// Enable import of translations. By default this is disabled for automated
@ -936,7 +937,7 @@ class ConfigTranslationUiTest extends BrowserTestBase {
}
/**
* Test text_format translation.
* Tests text_format translation.
*/
public function testTextFormatTranslation() {
$this->drupalLogin($this->adminUser);

View File

@ -29,7 +29,7 @@ class MigrateSystemMaintenanceTranslationTest extends MigrateDrupal6TestBase {
}
/**
* Tests migration of system (maintenance) variables to system.maintenance.yml.
* Tests migration of system variables to system.maintenance.yml.
*/
public function testSystemMaintenance() {
$config = \Drupal::service('language_manager')->getLanguageConfigOverride('fr', 'system.maintenance');

View File

@ -31,7 +31,7 @@ class MessageEntityTest extends EntityKernelTestBase {
}
/**
* Test some of the methods.
* Tests some of the methods.
*/
public function testMessageMethods() {
$message_storage = $this->container->get('entity_type.manager')->getStorage('contact_message');

View File

@ -39,7 +39,7 @@ class ContentModerationWorkflowTypeTest extends BrowserTestBase {
}
/**
* Test creating a new workflow using the content moderation plugin.
* Tests creating a new workflow using the content moderation plugin.
*/
public function testNewWorkflow() {
$types[] = $this->createContentType();

View File

@ -25,7 +25,7 @@ class DefaultModerationStateTest extends ModerationStateTestBase {
}
/**
* Test a workflow with a default moderation state set.
* Tests a workflow with a default moderation state set.
*/
public function testPublishedDefaultState() {
// Set the default moderation state to be "published".
@ -44,7 +44,7 @@ class DefaultModerationStateTest extends ModerationStateTestBase {
}
/**
* Test access to deleting the default state.
* Tests access to deleting the default state.
*/
public function testDeleteDefaultStateAccess() {
$this->drupalGet('admin/config/workflow/workflows/manage/editorial/state/archived/delete');

View File

@ -147,7 +147,7 @@ class ModeratedContentViewTest extends BrowserTestBase {
}
/**
* Test the moderated content page with multilingual content.
* Tests the moderated content page with multilingual content.
*/
public function testModeratedContentPageMultilingual() {
ConfigurableLanguage::createFromLangcode('fr')->save();

View File

@ -57,7 +57,7 @@ class ModerationActionsTest extends BrowserTestBase {
}
/**
* Test the node status actions report moderation status to users correctly.
* Tests the node status actions report moderation status to users correctly.
*
* @dataProvider nodeStatusActionsTestCases
*/

View File

@ -179,7 +179,7 @@ class ModerationFormTest extends ModerationStateTestBase {
}
/**
* Test moderation non-bundle entity type.
* Tests moderation non-bundle entity type.
*/
public function testNonBundleModerationForm() {
$this->drupalLogin($this->rootUser);
@ -479,7 +479,7 @@ class ModerationFormTest extends ModerationStateTestBase {
}
/**
* Test the moderation_state field when an alternative widget is set.
* Tests the moderation_state field when an alternative widget is set.
*/
public function testAlternativeModerationStateWidget() {
$entity_form_display = EntityFormDisplay::load('node.moderated_content.default');

View File

@ -60,7 +60,7 @@ class ModerationRevisionRevertTest extends BrowserTestBase {
}
/**
* Test that reverting a revision works.
* Tests that reverting a revision works.
*/
public function testEditingAfterRevertRevision() {
// Create a draft.

View File

@ -49,7 +49,7 @@ class ModerationStateAccessTest extends BrowserTestBase {
}
/**
* Test the view operation access handler with the view permission.
* Tests the view operation access handler with the view permission.
*/
public function testViewShowsCorrectStates() {
$permissions = [

View File

@ -33,7 +33,7 @@ class ContentModerationPermissionsTest extends KernelTestBase {
}
/**
* Test permissions generated by content moderation.
* Tests permissions generated by content moderation.
*
* @dataProvider permissionsTestCases
*/

View File

@ -53,7 +53,7 @@ class ContentModerationStateStorageSchemaTest extends KernelTestBase {
}
/**
* Test the ContentModerationState unique keys.
* Tests the ContentModerationState unique keys.
*
* @covers ::getEntitySchema
*/

View File

@ -478,7 +478,7 @@ class ContentModerationStateTest extends KernelTestBase {
}
/**
* Test changing the language of content without adding a translation.
* Tests changing the language of content without adding a translation.
*/
public function testChangingContentLangcode() {
$this->createContentType([
@ -613,7 +613,7 @@ class ContentModerationStateTest extends KernelTestBase {
}
/**
* Test the content moderation workflow dependencies for non-config bundles.
* Tests the content moderation workflow dependencies for non-config bundles.
*/
public function testWorkflowNonConfigBundleDependencies() {
// Create a bundle not based on any particular configuration.
@ -648,7 +648,7 @@ class ContentModerationStateTest extends KernelTestBase {
}
/**
* Test the revision default state of the moderation state entity revisions.
* Tests the revision default state of the moderation state entity revisions.
*
* @param string $entity_type_id
* The ID of entity type to be tested.

View File

@ -40,7 +40,7 @@ class ContentModerationSyncingTest extends KernelTestBase {
}
/**
* Test no new revision is forced during a sync.
* Tests no new revision is forced during a sync.
*/
public function testNoRevisionForcedDuringSync() {
$entity = EntityTestMulRevPub::create([
@ -58,7 +58,7 @@ class ContentModerationSyncingTest extends KernelTestBase {
}
/**
* Test changing the moderation state during a sync.
* Tests changing the moderation state during a sync.
*/
public function testSingleRevisionStateChangedDuringSync() {
$entity = EntityTestMulRevPub::create([
@ -84,7 +84,7 @@ class ContentModerationSyncingTest extends KernelTestBase {
}
/**
* Test state changes with multiple revisions during a sync.
* Tests state changes with multiple revisions during a sync.
*/
public function testMultipleRevisionStateChangedDuringSync() {
$entity = EntityTestMulRevPub::create([
@ -112,7 +112,7 @@ class ContentModerationSyncingTest extends KernelTestBase {
}
/**
* Test modifying a previous revision during a sync.
* Tests modifying a previous revision during a sync.
*/
public function testUpdatingPreviousRevisionDuringSync() {
$storage = $this->container->get('entity_type.manager')->getStorage('entity_test_mulrevpub');
@ -139,7 +139,7 @@ class ContentModerationSyncingTest extends KernelTestBase {
}
/**
* Test a moderation state changed on a previous revision during a sync.
* Tests a moderation state changed on a previous revision during a sync.
*/
public function testStateChangedPreviousRevisionDuringSync() {
$storage = $this->container->get('entity_type.manager')->getStorage('entity_test_mulrevpub');

View File

@ -78,7 +78,7 @@ class ContentModerationWorkflowConfigTest extends KernelTestBase {
}
/**
* Test deleting a state via config import.
* Tests deleting a state via config import.
*/
public function testDeletingStateViaConfiguration() {
$config_sync = \Drupal::service('config.storage.sync');

View File

@ -55,7 +55,7 @@ class EntityStateChangeValidationTest extends KernelTestBase {
}
/**
* Test valid transitions.
* Tests valid transitions.
*
* @covers ::validate
*/
@ -85,7 +85,7 @@ class EntityStateChangeValidationTest extends KernelTestBase {
}
/**
* Test invalid transitions.
* Tests invalid transitions.
*
* @covers ::validate
*/
@ -115,7 +115,7 @@ class EntityStateChangeValidationTest extends KernelTestBase {
}
/**
* Test validation with an invalid state.
* Tests validation with an invalid state.
*/
public function testInvalidState() {
$node_type = NodeType::create([
@ -138,7 +138,7 @@ class EntityStateChangeValidationTest extends KernelTestBase {
}
/**
* Test validation with content that has no initial state or an invalid state.
* Tests validation with no initial state or an invalid state.
*/
public function testInvalidStateWithoutExisting() {
$this->setCurrentUser($this->adminUser);
@ -187,7 +187,7 @@ class EntityStateChangeValidationTest extends KernelTestBase {
}
/**
* Test state transition validation with multiple languages.
* Tests state transition validation with multiple languages.
*/
public function testInvalidStateMultilingual() {
$this->setCurrentUser($this->adminUser);

View File

@ -78,7 +78,7 @@ class EntityTypeInfoTest extends KernelTestBase {
}
/**
* Test the correct entity types have moderation added.
* Tests the correct entity types have moderation added.
*
* @covers ::entityTypeAlter
*
@ -129,7 +129,7 @@ class EntityTypeInfoTest extends KernelTestBase {
}
/**
* Test entity base field provider.
* Tests entity base field provider.
*/
public function testEntityBaseFieldProvider() {
$this->enableModeration('entity_test_mulrev', 'entity_test_mulrev');

View File

@ -74,7 +74,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test the field item list when accessing an index.
* Tests the field item list when accessing an index.
*/
public function testArrayIndex() {
$this->assertFalse($this->testNode->isPublished());
@ -82,7 +82,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test the field item list when iterating.
* Tests the field item list when iterating.
*/
public function testArrayIteration() {
$states = [];
@ -125,7 +125,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test an empty value assigned to the field item.
* Tests an empty value assigned to the field item.
*/
public function testEmptyFieldItem() {
$this->testNode->moderation_state->value = '';
@ -134,7 +134,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test an empty value assigned to the field item list.
* Tests an empty value assigned to the field item list.
*/
public function testEmptyFieldItemList() {
$this->testNode->moderation_state = '';
@ -143,7 +143,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test the field item when it is unset.
* Tests the field item when it is unset.
*/
public function testUnsetItemList() {
unset($this->testNode->moderation_state);
@ -152,7 +152,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test the field item when it is assigned NULL.
* Tests the field item when it is assigned NULL.
*/
public function testAssignNullItemList() {
$this->testNode->moderation_state = NULL;
@ -176,7 +176,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test the list class with a non moderated entity.
* Tests the list class with a non moderated entity.
*/
public function testNonModeratedEntity() {
$unmoderated_node = Node::create([
@ -248,7 +248,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test updating the state for an entity without a workflow.
* Tests updating the state for an entity without a workflow.
*/
public function testEntityWithNoWorkflow() {
$node_type = NodeType::create([
@ -273,7 +273,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test the moderation_state field after an entity has been serialized.
* Tests the moderation_state field after an entity has been serialized.
*
* @dataProvider entityUnserializeTestCases
*/
@ -310,7 +310,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test saving a moderated node with an existing ID.
* Tests saving a moderated node with an existing ID.
*
* @dataProvider moderatedEntityWithExistingIdTestCases
*/
@ -326,7 +326,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test cases for ::testModeratedEntityWithExistingId.
* Tests cases for ::testModeratedEntityWithExistingId.
*/
public function moderatedEntityWithExistingIdTestCases() {
return [
@ -372,7 +372,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase {
}
/**
* Test the field item list when used with existing unmoderated content.
* Tests the field item list when used with existing unmoderated content.
*/
public function testWithExistingUnmoderatedContent() {
$node = Node::create([

View File

@ -54,7 +54,7 @@ class ModerationStateWidgetTest extends KernelTestBase {
}
/**
* Test the widget does not impact a non-moderated entity.
* Tests the widget does not impact a non-moderated entity.
*/
public function testWidgetNonModeratedEntity() {
// Create an unmoderated entity and build a form display which will include

View File

@ -44,7 +44,7 @@ class StateFormatterTest extends KernelTestBase {
}
/**
* Test the embed field.
* Tests the embed field.
*
* @dataProvider formatterTestCases
*/

View File

@ -173,7 +173,7 @@ class ViewsModerationStateFilterTest extends ViewsKernelTestBase {
}
/**
* Test the moderation filter with a non-translatable entity type.
* Tests the moderation filter with a non-translatable entity type.
*/
public function testNonTranslatableEntityType() {
$workflow = Workflow::load('editorial');

View File

@ -60,7 +60,7 @@ class ViewsModerationStateSortTest extends ViewsKernelTestBase {
}
/**
* Test sorting with a standard data base table.
* Tests sorting with a standard data base table.
*/
public function testSortBaseTable() {
$this->enableModules(['content_moderation_test_views']);
@ -99,7 +99,7 @@ class ViewsModerationStateSortTest extends ViewsKernelTestBase {
}
/**
* Test sorting with the revision base table.
* Tests sorting with the revision base table.
*/
public function testSortRevisionBaseTable() {
$this->enableModules(['content_moderation_test_views']);

View File

@ -39,7 +39,7 @@ class LatestRevisionCheckTest extends UnitTestCase {
}
/**
* Test the access check of the LatestRevisionCheck service.
* Tests the access check of the LatestRevisionCheck service.
*
* @param string $entity_class
* The class of the entity to mock.

View File

@ -83,7 +83,7 @@ class ContentTranslationLanguageChangeTest extends NodeTestBase {
}
/**
* Test that the source language is properly set when changing.
* Tests that the source language is properly set when changing.
*/
public function testLanguageChange() {
// Create a node in English.
@ -118,7 +118,7 @@ class ContentTranslationLanguageChangeTest extends NodeTestBase {
}
/**
* Test that title does not change on ajax call with new language value.
* Tests that title does not change on ajax call with new language value.
*/
public function testTitleDoesNotChangesOnChangingLanguageWidgetAndTriggeringAjaxCall() {
// Create a node in English.

View File

@ -71,7 +71,7 @@ class ContentTranslationOperationsTest extends NodeTestBase {
}
/**
* Test that the operation "Translate" is displayed in the content listing.
* Tests that the operation "Translate" is displayed in the content listing.
*/
public function testOperationTranslateLink() {
$node = $this->drupalCreateNode(['type' => 'article', 'langcode' => 'es']);

View File

@ -73,7 +73,7 @@ class ContentTranslationStandardFieldsTest extends BrowserTestBase {
}
/**
* Test that revision_log is not translatable.
* Tests that revision_log is not translatable.
*/
public function testRevisionLogNotTranslatable() {
$path = 'admin/config/regional/content-language';

View File

@ -589,7 +589,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
}
/**
* Test the changed time after API and FORM save without changes.
* Tests the changed time after API and FORM save without changes.
*/
public function doTestChangedTimeAfterSaveWithoutChanges() {
$storage = $this->container->get('entity_type.manager')

View File

@ -181,7 +181,7 @@ class ContentTranslationWorkflowsTest extends ContentTranslationTestBase {
}
/**
* Test simple and editorial translation workflows.
* Tests simple and editorial translation workflows.
*/
public function testWorkflows() {
// Test workflows for the editor.

View File

@ -374,7 +374,7 @@ class ContentTranslationFieldSyncRevisionTest extends EntityKernelTestBase {
}
/**
* Test changing the default language of an entity.
* Tests changing the default language of an entity.
*/
public function testChangeDefaultLanguageNonTranslatableFieldsHidden() {
$this->setUntranslatableFieldWidgetsDisplay(FALSE);

View File

@ -58,7 +58,7 @@ class ContentTranslationModuleInstallTest extends KernelTestBase {
}
/**
* Test that content translation fields are created upon module installation.
* Tests that content translation fields are created upon module installation.
*/
public function testFieldUpdates() {
// The module ships a translatable bundle of the 'entity_test_with_bundle'

View File

@ -64,7 +64,7 @@ class ContextualLinksTest extends WebDriverTestBase {
}
/**
* Test clicking contextual links.
* Tests clicking contextual links.
*/
public function testContextualLinksClick() {
$this->container->get('module_installer')->install(['contextual_test']);
@ -98,7 +98,7 @@ class ContextualLinksTest extends WebDriverTestBase {
}
/**
* Test the contextual links destination.
* Tests the contextual links destination.
*/
public function testContextualLinksDestination() {
$this->grantPermissions(Role::load(Role::AUTHENTICATED_ID), [

View File

@ -667,7 +667,7 @@ class DateTimeFieldTest extends DateTestBase {
}
/**
* Test default value functionality.
* Tests default value functionality.
*/
public function testDefaultValue() {
// Create a test content type.
@ -785,7 +785,7 @@ class DateTimeFieldTest extends DateTestBase {
}
/**
* Test that invalid values are caught and marked as invalid.
* Tests that invalid values are caught and marked as invalid.
*/
public function testInvalidField() {
// Change the field to a datetime field.

View File

@ -46,7 +46,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test year argument.
* Tests year argument.
*
* @see \Drupal\datetime\Plugin\views\argument\YearDate
*/
@ -89,7 +89,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test month argument.
* Tests month argument.
*
* @see \Drupal\datetime\Plugin\views\argument\MonthDate
*/
@ -115,7 +115,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test day argument.
* Tests day argument.
*
* @see \Drupal\datetime\Plugin\views\argument\DayDate
*/
@ -141,7 +141,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test year, month, and day arguments combined.
* Tests year, month, and day arguments combined.
*/
public function testDatetimeArgumentAll() {
$view = Views::getView('test_argument_datetime');
@ -163,7 +163,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test week WW argument.
* Tests week WW argument.
*/
public function testDatetimeArgumentWeek() {
$view = Views::getView('test_argument_datetime');
@ -187,7 +187,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test full_date CCYYMMDD argument.
* Tests full_date CCYYMMDD argument.
*/
public function testDatetimeArgumentFullDate() {
$view = Views::getView('test_argument_datetime');
@ -209,7 +209,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test year_month CCYYMM argument.
* Tests year_month CCYYMM argument.
*/
public function testDatetimeArgumentYearMonth() {
$view = Views::getView('test_argument_datetime');

View File

@ -20,7 +20,7 @@ class DateTimeSchemaTest extends DateTimeHandlerTestBase {
public static $testViews = ['test_argument_datetime', 'test_filter_datetime', 'test_sort_datetime'];
/**
* Test argument plugin schema.
* Tests argument plugin schema.
*/
public function testDateTimeSchema() {
// Test argument schema.

View File

@ -83,7 +83,7 @@ class FilterDateTest extends DateTimeHandlerTestBase {
}
/**
* Test offsets with date-only fields.
* Tests offsets with date-only fields.
*/
public function testDateOffsets() {
$view = Views::getView('test_filter_datetime');
@ -167,7 +167,7 @@ class FilterDateTest extends DateTimeHandlerTestBase {
}
/**
* Test date filter with date-only fields.
* Tests date filter with date-only fields.
*/
public function testDateIs() {
$view = Views::getView('test_filter_datetime');

View File

@ -69,7 +69,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test filter operations.
* Tests filter operations.
*/
public function testDatetimeFilter() {
$this->_testOffset();
@ -78,7 +78,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test offset operations.
* Tests offset operations.
*/
protected function _testOffset() {
$view = Views::getView('test_filter_datetime');
@ -113,7 +113,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test between operations.
* Tests between operations.
*/
protected function _testBetween() {
$view = Views::getView('test_filter_datetime');
@ -176,7 +176,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase {
}
/**
* Test exact date matching.
* Tests exact date matching.
*/
protected function _testExact() {
$view = Views::getView('test_filter_datetime');

View File

@ -993,7 +993,7 @@ class DateRangeFieldTest extends DateTestBase {
}
/**
* Test default value functionality.
* Tests default value functionality.
*/
public function testDefaultValue() {
// Create a test content type.
@ -1157,7 +1157,7 @@ class DateRangeFieldTest extends DateTestBase {
}
/**
* Test that invalid values are caught and marked as invalid.
* Tests that invalid values are caught and marked as invalid.
*/
public function testInvalidField() {
// Change the field to a datetime field.

View File

@ -114,7 +114,7 @@ class FilterDateTest extends DateTimeHandlerTestBase {
}
/**
* Test offsets with date-only fields.
* Tests offsets with date-only fields.
*/
public function testDateOffsets() {
$view = Views::getView('test_filter_datetime');

View File

@ -105,7 +105,7 @@ class DbLogTest extends BrowserTestBase {
}
/**
* Test individual log event page.
* Tests individual log event page.
*/
public function testLogEventPage() {
// Login the admin user.
@ -184,7 +184,7 @@ class DbLogTest extends BrowserTestBase {
}
/**
* Test not-existing log event page.
* Tests not-existing log event page.
*/
public function testLogEventNotFoundPage() {
// Login the admin user.
@ -197,7 +197,7 @@ class DbLogTest extends BrowserTestBase {
}
/**
* Test individual log event page with missing log attributes.
* Tests individual log event page with missing log attributes.
*
* In some cases few log attributes are missing. For example:
* - Missing referer: When request is made to a specific url directly and
@ -858,7 +858,7 @@ class DbLogTest extends BrowserTestBase {
}
/**
* Test sorting for entries with the same timestamp.
* Tests sorting for entries with the same timestamp.
*/
public function testSameTimestampEntries() {
$this->drupalLogin($this->adminUser);

View File

@ -102,7 +102,7 @@ class ViewsIntegrationTest extends ViewsKernelTestBase {
}
/**
* Test views can be filtered by severity and log type.
* Tests views can be filtered by severity and log type.
*/
public function testFiltering() {
// Remove the watchdog entries added by the potential batch process.

View File

@ -26,7 +26,7 @@ class EditorDialogAccessTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
/**
* Test access to the editor image dialog.
* Tests access to the editor image dialog.
*/
public function testEditorImageDialogAccess() {
$url = Url::fromRoute('editor.image_dialog', ['editor' => 'plain_text']);

View File

@ -245,7 +245,7 @@ class EditorLoadingTest extends BrowserTestBase {
}
/**
* Test supported element types.
* Tests supported element types.
*/
public function testSupportedElementTypes() {
// Associate the unicorn text editor with the "Full HTML" text format.

View File

@ -68,7 +68,7 @@ class QuickEditIntegrationLoadingTest extends BrowserTestBase {
}
/**
* Test loading of untransformed text when a user doesn't have access to it.
* Tests loading of untransformed text when a user doesn't have access to it.
*/
public function testUsersWithoutPermission() {
// Create 3 users, each with insufficient permissions, i.e. without either
@ -117,7 +117,7 @@ class QuickEditIntegrationLoadingTest extends BrowserTestBase {
}
/**
* Test loading of untransformed text when a user does have access to it.
* Tests loading of untransformed text when a user does have access to it.
*/
public function testUserWithPermission() {
$user = $this->drupalCreateUser(array_merge(static::$basicPermissions, ['edit any article content', 'access in-place editing']));

View File

@ -180,7 +180,7 @@ class BooleanFieldTest extends BrowserTestBase {
}
/**
* Test field access.
* Tests field access.
*/
public function testFormAccess() {
$on = 'boolean_on';

View File

@ -79,7 +79,7 @@ class FieldAccessTest extends FieldTestBase {
}
/**
* Test that hook_entity_field_access() is called.
* Tests that hook_entity_field_access() is called.
*/
public function testFieldAccess() {

View File

@ -39,7 +39,7 @@ class FieldHelpTest extends BrowserTestBase {
}
/**
* Test the Field module's help page.
* Tests the Field module's help page.
*/
public function testFieldHelp() {
// Log in the admin user.

View File

@ -39,7 +39,7 @@ class NumberFieldTest extends BrowserTestBase {
}
/**
* Test decimal field.
* Tests decimal field.
*/
public function testNumberDecimalField() {
// Create a field with settings to validate.
@ -127,7 +127,7 @@ class NumberFieldTest extends BrowserTestBase {
}
/**
* Test integer field.
* Tests integer field.
*/
public function testNumberIntegerField() {
$minimum = rand(-4000, -2000);
@ -282,7 +282,7 @@ class NumberFieldTest extends BrowserTestBase {
}
/**
* Test float field.
* Tests float field.
*/
public function testNumberFloatField() {
// Create a field with settings to validate.

View File

@ -45,7 +45,7 @@ class ReEnableModuleFieldTest extends BrowserTestBase {
}
/**
* Test the behavior of a field module after being disabled and re-enabled.
* Tests the behavior of a field module after being disabled and re-enabled.
*
* @see field_system_info_alter()
*/

View File

@ -48,7 +48,7 @@ class StringFieldTest extends BrowserTestBase {
// Test fields.
/**
* Test widgets.
* Tests widgets.
*/
public function testTextfieldWidgets() {
$this->_testTextfieldWidgets('string', 'string_textfield');

View File

@ -42,7 +42,7 @@ class NumberFieldTest extends WebDriverTestBase {
}
/**
* Test default formatter behavior.
* Tests default formatter behavior.
*/
public function testNumberFormatter() {
$type = mb_strtolower($this->randomMachineName());

View File

@ -332,7 +332,7 @@ class EntityReferenceItemTest extends FieldKernelTestBase {
}
/**
* Test saving order sequence doesn't matter.
* Tests saving order sequence doesn't matter.
*/
public function testEntitySaveOrder() {
// The term entity is unsaved here.

View File

@ -20,7 +20,7 @@ class FieldAttachOtherTest extends FieldKernelTestBase {
}
/**
* Test rendering fields with EntityDisplay build().
* Tests rendering fields with EntityDisplay build().
*/
public function testEntityDisplayBuild() {
$this->createFieldWithStorage('_2');
@ -156,7 +156,7 @@ class FieldAttachOtherTest extends FieldKernelTestBase {
}
/**
* Test entity cache.
* Tests entity cache.
*
* Complements unit test coverage in
* \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest.

View File

@ -71,7 +71,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
}
/**
* Test the 'multiple' load feature.
* Tests the 'multiple' load feature.
*/
public function testFieldAttachLoadMultiple() {
$entity_type = 'entity_test_rev';
@ -190,7 +190,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
}
/**
* Test insert with empty or NULL fields, with default value.
* Tests insert with empty or NULL fields, with default value.
*/
public function testFieldAttachSaveEmptyDataDefaultValue() {
$entity_type = 'entity_test_rev';
@ -223,7 +223,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
}
/**
* Test entity deletion.
* Tests entity deletion.
*/
public function testFieldAttachDelete() {
$entity_type = 'entity_test_rev';
@ -283,7 +283,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
}
/**
* Test entity_bundle_create().
* Tests entity_bundle_create().
*/
public function testEntityCreateBundle() {
$entity_type = 'entity_test_rev';
@ -311,7 +311,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
}
/**
* Test entity_bundle_delete().
* Tests entity_bundle_delete().
*/
public function testEntityDeleteBundle() {
$entity_type = 'entity_test_rev';

View File

@ -62,7 +62,7 @@ class FieldCrudTest extends FieldKernelTestBase {
// and for testUpdateField
/**
* Test the creation of a field.
* Tests the creation of a field.
*/
public function testCreateField() {
$field = FieldConfig::create($this->fieldDefinition);
@ -195,7 +195,7 @@ class FieldCrudTest extends FieldKernelTestBase {
}
/**
* Test creating a field with custom storage set.
* Tests creating a field with custom storage set.
*/
public function testCreateFieldCustomStorage() {
$field_name = mb_strtolower($this->randomMachineName());
@ -233,7 +233,7 @@ class FieldCrudTest extends FieldKernelTestBase {
}
/**
* Test reading back a field definition.
* Tests reading back a field definition.
*/
public function testReadField() {
FieldConfig::create($this->fieldDefinition)->save();
@ -246,7 +246,7 @@ class FieldCrudTest extends FieldKernelTestBase {
}
/**
* Test the update of a field.
* Tests the update of a field.
*/
public function testUpdateField() {
FieldConfig::create($this->fieldDefinition)->save();
@ -268,7 +268,7 @@ class FieldCrudTest extends FieldKernelTestBase {
}
/**
* Test the deletion of a field with no data.
* Tests the deletion of a field with no data.
*/
public function testDeleteFieldNoData() {
// Deleting and purging fields with data is tested in

View File

@ -29,7 +29,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
// defer actual $field comparison to a helper function, used for the two cases above
/**
* Test the creation of a field storage.
* Tests the creation of a field storage.
*/
public function testCreate() {
$field_storage_definition = [
@ -239,7 +239,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
}
/**
* Test creation of indexes on data column.
* Tests creation of indexes on data column.
*/
public function testIndexes() {
// Check that indexes specified by the field type are used by default.
@ -289,7 +289,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
}
/**
* Test the deletion of a field storage.
* Tests the deletion of a field storage.
*/
public function testDeleteNoData() {
// Deleting and purging field storages with data is tested in
@ -390,7 +390,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
}
/**
* Test changing a field storage type.
* Tests changing a field storage type.
*/
public function testUpdateEntityType() {
$field_storage = FieldStorageConfig::create([
@ -408,7 +408,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
}
/**
* Test changing a field storage entity type.
* Tests changing a field storage entity type.
*/
public function testUpdateEntityTargetType() {
$field_storage = FieldStorageConfig::create([
@ -426,7 +426,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
}
/**
* Test updating a field storage.
* Tests updating a field storage.
*/
public function testUpdate() {
// Create a field with a defined cardinality, so that we can ensure it's
@ -468,7 +468,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
}
/**
* Test field type modules forbidding an update.
* Tests field type modules forbidding an update.
*/
public function testUpdateForbid() {
$field_storage = FieldStorageConfig::create([

Some files were not shown because too many files have changed in this diff Show More