Verified Commit 8202dc17 authored by Dave Long's avatar Dave Long
Browse files

test: #3556580 Remove remaining references to @group annotations from tests

By: mondrake
parent 0318f797
Loading
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -10,8 +10,6 @@

/**
 * Provides a global context for view_mode for testing purposes.
 *
 * @group layout_builder
 */
class FakeViewModeContext implements ContextProviderInterface {

+0 −2
Original line number Diff line number Diff line
@@ -15,8 +15,6 @@
 * This test checks that the discovered upgrade paths, which are based on the
 * source_module and destination_module definition matches the declared
 * upgrade paths in all the migrate_drupal.yml files.
 *
 * @group migrate_drupal
 */
trait ValidateMigrationStateTestTrait {

+5 −5
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@
}

if ($args['list']) {
  // Display all available tests organized by one @group annotation.
  // Display all available tests organized by one #[Group()] attribute.
  echo "\nAvailable test groups & classes\n";
  echo "-------------------------------\n\n";
  $test_discovery = PhpUnitTestDiscovery::instance()->setConfigurationFilePath($args['phpunit-configuration']);
@@ -378,7 +378,7 @@ function simpletest_script_help(): void {

              One or more tests to be run. By default, these are interpreted
              as the names of test groups which are derived from test class
              @group annotations.
              #[Group()] attributes.
              These group names typically correspond to module names like "User"
              or "Profile" or "System", but there is also a group "Database".
              If --class is specified then these are interpreted as the names of
@@ -865,7 +865,7 @@ function simpletest_script_get_test_list() {
      echo (string) $e;
      exit(SIMPLETEST_SCRIPT_EXIT_EXCEPTION);
    }
    // Ensure that tests marked explicitly as @group #slow are run at the
    // Ensure that tests marked explicitly as #[Group('#slow')] are run at the
    // beginning of each job.
    if (key($groups) === '#slow') {
      $slow_tests = array_shift($groups);
@@ -890,8 +890,8 @@ function simpletest_script_get_test_list() {
    }
    else {
      // Sort all tests by the number of test cases on the test class.
      // This is used in combination with @group #slow to start the slowest
      // tests first and distribute tests between test runners.
      // This is used in combination with #[Group('#slow')] to start the
      // slowest tests first and distribute tests between test runners.
      sort_tests_by_public_method_count($slow_tests);
      sort_tests_by_public_method_count($not_slow_tests);
      $all_tests_list = array_merge($slow_tests, $not_slow_tests);
+0 −2
Original line number Diff line number Diff line
@@ -6,8 +6,6 @@

/**
 * Provides methods to support testing hooks.
 *
 * @group Hook
 */
trait HookOrderTestTrait {

+0 −6
Original line number Diff line number Diff line
@@ -1056,8 +1056,6 @@ protected function getRaw($value) {

/**
 * Helper interface to test Container::get() with configurator.
 *
 * @group DependencyInjection
 */
interface MockConfiguratorInterface {

@@ -1074,8 +1072,6 @@ public function configureService($service);

/**
 * Helper class to test Container::get() method for varying number of parameters.
 *
 * @group DependencyInjection
 */
class MockInstantiationService {

@@ -1106,8 +1102,6 @@ public function getArguments() {

/**
 * Helper class to test Container::get() method.
 *
 * @group DependencyInjection
 */
class MockService {