diff --git a/core/modules/system/tests/src/Functional/Module/DependencyTest.php b/core/modules/system/tests/src/Functional/Module/DependencyTest.php
index 7e997be5679bc20efb236d18b8b2a999af241a32..0f7705eb57b8a5d6fa40bbf53f4a869248135b1b 100644
--- a/core/modules/system/tests/src/Functional/Module/DependencyTest.php
+++ b/core/modules/system/tests/src/Functional/Module/DependencyTest.php
@@ -44,8 +44,8 @@ public function testEnableWithoutDependency() {
 
     $this->assertModules(['content_translation', 'language'], FALSE);
 
-    // Assert that the language tables weren't enabled.
-    $this->assertTableCount('language', FALSE);
+    // Assert that the language module config was not installed.
+    $this->assertNoModuleConfig('language');
 
     $this->submitForm([], 'Continue');
     $this->assertText('2 modules have been enabled: Content Translation, Language.');
diff --git a/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php b/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
index a2fefcf1531f6f4e900135687dc2f899996e90a9..6720b471152b1760967f91b9c39df8045da35d81 100644
--- a/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
+++ b/core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
@@ -33,25 +33,6 @@ protected function setUp() {
     $this->drupalLogin($this->adminUser);
   }
 
-  /**
-   * Assert there are tables that begin with the specified base table name.
-   *
-   * @param $base_table
-   *   Beginning of table name to look for.
-   * @param $count
-   *   (optional) Whether or not to assert that there are tables that match the
-   *   specified base table. Defaults to TRUE.
-   */
-  public function assertTableCount($base_table, $count = TRUE) {
-    $connection = Database::getConnection();
-    $tables = $connection->schema()->findTables($connection->prefixTables('{' . $base_table . '}') . '%');
-
-    if ($count) {
-      $this->assertNotEmpty($tables, new FormattableMarkup('Tables matching "@base_table" found.', ['@base_table' => $base_table]));
-    }
-    $this->assertEmpty($tables, new FormattableMarkup('Tables matching "@base_table" not found.', ['@base_table' => $base_table]));
-  }
-
   /**
    * Assert that all tables defined in a module's hook_schema() exist.
    *