diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigImportTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigImportTest.php index b659ace..5f8b709 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigImportTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigImportTest.php @@ -90,14 +90,6 @@ function testDeleted() { $config = config($dynamic_name); $this->assertIdentical($config->get('id'), NULL); - // Verify that appropriate module API hooks have been invoked. - $this->assertTrue(isset($GLOBALS['hook_config_test']['load'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['presave'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['insert'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['update'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['predelete'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['delete'])); - // Verify that there is nothing more to import. $this->assertFalse(config_sync_get_changes($staging, $storage)); } @@ -146,14 +138,6 @@ function testNew() { $config = config($dynamic_name); $this->assertIdentical($config->get('label'), $original_dynamic_data['label']); - // Verify that appropriate module API hooks have been invoked. - $this->assertFalse(isset($GLOBALS['hook_config_test']['load'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['presave'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['insert'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['update'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['predelete'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['delete'])); - // Verify that there is nothing more to import. $this->assertFalse(config_sync_get_changes($staging, $storage)); } @@ -206,14 +190,6 @@ function testUpdated() { $this->assertIdentical($staging->read($name), $original_name_data); $this->assertIdentical($staging->read($dynamic_name), $original_dynamic_data); - // Verify that appropriate module API hooks have been invoked. - $this->assertTrue(isset($GLOBALS['hook_config_test']['load'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['presave'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['insert'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['update'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['predelete'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['delete'])); - // Verify that there is nothing more to import. $this->assertFalse(config_sync_get_changes($staging, $storage)); } diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigInstallTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigInstallTest.php index 3e6a88e..3a36779 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigInstallTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigInstallTest.php @@ -47,13 +47,5 @@ function testModuleInstallation() { // configuration entity. $this->assertTrue($GLOBALS['hook_config_import']); - // Verify that config_test API hooks were invoked for the dynamic default - // configuration entity. - $this->assertFalse(isset($GLOBALS['hook_config_test']['load'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['presave'])); - $this->assertTrue(isset($GLOBALS['hook_config_test']['insert'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['update'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['predelete'])); - $this->assertFalse(isset($GLOBALS['hook_config_test']['delete'])); } } diff --git a/core/modules/config/tests/config_test/config_test.module b/core/modules/config/tests/config_test/config_test.module index e291fcd..c34f2d7 100644 --- a/core/modules/config/tests/config_test/config_test.module +++ b/core/modules/config/tests/config_test/config_test.module @@ -78,19 +78,6 @@ function config_test_entity_info() { } /** - * Implements hook_permission(). - */ -function config_test_permission() { - $permissions = array( - 'administer config_test content' => array( - 'title' => t('Administer entity_test content'), - 'description' => t('Manage config_test contnet'), - ) - ); - return $permissions; -} - -/** * Entity URI callback. * * @param Drupal\config_test\ConfigTest $config_test diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestFormController.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestFormController.php index 4e97032..3381702 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestFormController.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestFormController.php @@ -1,4 +1,5 @@