Commit 6f49625c authored by catch's avatar catch
Browse files

Issue #3133162 by jungle, ravi.shankar, Deepak Goyal, Neslee Canil Pinto,...

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)
parent a8ac5ce5
......@@ -23,7 +23,7 @@ protected function setUp(): void {
}
/**
* Test Drupal 6 action migration to Drupal 8.
* Tests Drupal 6 action migration to Drupal 8.
*/
public function testActions() {
// Test default actions.
......
......@@ -23,7 +23,7 @@ protected function setUp(): void {
}
/**
* Test Drupal 7 action migration to Drupal 8.
* Tests Drupal 7 action migration to Drupal 8.
*/
public function testActions() {
// Test default actions.
......
......@@ -28,7 +28,7 @@ protected function setUp(): void {
}
/**
* Test fetching functionality.
* Tests fetching functionality.
*/
public function testfetch() {
// Create feed with local url.
......
......@@ -31,7 +31,7 @@ protected function setUp(): void {
}
/**
* Test processing functionality.
* Tests processing functionality.
*/
public function testProcess() {
$feed = $this->createFeed();
......@@ -43,7 +43,7 @@ public function testProcess() {
}
/**
* Test deleting functionality.
* Tests deleting functionality.
*/
public function testDelete() {
$feed = $this->createFeed();
......@@ -55,7 +55,7 @@ public function testDelete() {
}
/**
* Test post-processing functionality.
* Tests post-processing functionality.
*/
public function testPostProcess() {
$feed = $this->createFeed(NULL, ['refresh' => 1800]);
......
......@@ -28,7 +28,7 @@ protected function setUp(): void {
}
/**
* 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 */
......
......@@ -29,7 +29,7 @@ protected function setUp(): void {
}
/**
* 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,
......
......@@ -71,7 +71,7 @@ protected function setUp(): void {
}
/**
* Test for AggregatorPluginSettingsBase.
* Tests for AggregatorPluginSettingsBase.
*
* Ensure that the settings form calls build, validate and submit methods on
* plugins that extend AggregatorPluginSettingsBase.
......
......@@ -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 @@ public function testBasicAuth() {
}
/**
* Test the global login flood control.
* Tests the global login flood control.
*/
public function testGlobalLoginFloodControl() {
$this->config('user.flood')
......@@ -116,7 +116,7 @@ public function testGlobalLoginFloodControl() {
}
/**
* Test the per-user login flood control.
* Tests the per-user login flood control.
*/
public function testPerUserLoginFloodControl() {
$this->config('user.flood')
......
......@@ -75,7 +75,7 @@ protected function setUp(): void {
}
/**
* 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 @@ public function testCachePerRole() {
}
/**
* 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 @@ public function testCachePermissions() {
}
/**
* Test non-cacheable block.
* Tests non-cacheable block.
*/
public function testNoCache() {
\Drupal::state()->set('block_test.cache_max_age', 0);
......@@ -176,7 +176,7 @@ public function testNoCache() {
}
/**
* Test "user" cache context.
* Tests "user" cache context.
*/
public function testCachePerUser() {
\Drupal::state()->set('block_test.cache_contexts', ['user']);
......@@ -208,7 +208,7 @@ public function testCachePerUser() {
}
/**
* Test "url" cache context.
* Tests "url" cache context.
*/
public function testCachePerPage() {
\Drupal::state()->set('block_test.cache_contexts', ['url']);
......
......@@ -35,7 +35,7 @@ protected function setUp(): void {
}
/**
* 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 @@ public function testCachePerPage() {
}
/**
* Test the actual placeholders.
* Tests the actual placeholders.
*/
public function testPlaceholders() {
$this->drupalGet('test-multiple-forms');
......
......@@ -105,7 +105,7 @@ public function testBlockToggleVisibility() {
}
/**
* 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 @@ public function testAddBlockFromLibraryWithWeight() {
}
/**
* 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 @@ public function testBlockThemeSelector() {
}
/**
* Test block display of theme titles.
* Tests block display of theme titles.
*/
public function testThemeName() {
// Enable the help block.
......@@ -294,7 +294,7 @@ public function testThemeName() {
}
/**
* Test block title display settings.
* Tests block title display settings.
*/
public function testHideBlockTitle() {
$block_name = 'system_powered_by_block';
......@@ -364,7 +364,7 @@ public function moveBlockToRegion(array $block, $region) {
}
/**
* 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>"
......
......@@ -87,7 +87,7 @@ protected function setUp(): void {
}
/**
* 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 @@ public function testBlockDemoUiPage() {
}
/**
* Test block admin page exists and functions correctly.
* Tests block admin page exists and functions correctly.
*/
public function testBlockAdminUiPage() {
// Visit the blocks admin ui.
......
......@@ -33,7 +33,7 @@ protected function setUp(): void {
}
/**
* Test non-default theme admin.
* Tests non-default theme admin.
*/
public function testNonDefaultBlockAdmin() {
$admin_user = $this->drupalCreateUser([
......
......@@ -195,7 +195,7 @@ public function testDeleteBlockDisplay() {
}
/**
* 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']));
......
......@@ -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
......
......@@ -221,7 +221,7 @@ public function testFailedBlockCreation() {
}
/**
* Test deleting a block.
* Tests deleting a block.
*/
public function testBlockDelete() {
// Create a block.
......@@ -280,7 +280,7 @@ public function testBlockDelete() {
}
/**
* 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();
......
......@@ -140,7 +140,7 @@ public function testQueriesNotAltered() {
}
/**
* Test with no conditions set.
* Tests with no conditions set.
*
* @throws \Drupal\Core\Entity\EntityStorageException
*/
......
......@@ -42,7 +42,7 @@ protected function setUp(): void {
}
/**
* Test that the previous dependency is replaced when using set.
* Tests that the previous dependency is replaced when using set.
*
* @covers ::setAccessDependency
*
......
......@@ -155,7 +155,7 @@ protected function createBookNode($book_nid, $parent = NULL) {
}
/**
* 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 @@ public function testBreadcrumbTitleUpdates() {
}
/**
* 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.
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment