diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php index b17ca69875ec0b432713bce036952f3e414fbbb2..f60c0a56ee569038a45b6d5ea46fd3e0bf1d3528 100644 --- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php +++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php @@ -1163,25 +1163,6 @@ protected function setSiteInformation($site_name, $site_slogan) { $this->assertSession()->pageTextContains('The configuration options have been saved.'); } - /** - * Get server-rendered contextual links for the given contextual link ids. - * - * @param array $ids - * An array of contextual link ids. - * @param string $current_path - * The Drupal path for the page for which the contextual links are rendered. - * - * @return string - * The response body. - */ - protected function renderContextualLinks($ids, $current_path) { - $post = []; - for ($i = 0; $i < count($ids); $i++) { - $post['ids[' . $i . ']'] = $ids[$i]; - } - return $this->drupalPostWithFormat('contextual/render', 'json', $post, ['query' => ['destination' => $current_path]]); - } - /** * Asserts that a textarea with a given ID has been disabled from editing. * diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsTest.php index f22cc669128be0edb96f0ea9dca61005bc2319c0..48e263ceaed51802960591fd6c6d88271edf16fa 100644 --- a/core/modules/node/tests/src/Functional/NodeRevisionsTest.php +++ b/core/modules/node/tests/src/Functional/NodeRevisionsTest.php @@ -9,7 +9,6 @@ use Drupal\language\Entity\ConfigurableLanguage; use Drupal\node\Entity\Node; use Drupal\node\NodeInterface; -use Drupal\Component\Serialization\Json; /** * Create a node with revisions and test viewing, saving, reverting, and @@ -361,27 +360,6 @@ public function testNodeRevisionWithoutLogMessage() { $this->assertEmpty($node_revision->revision_log->value, 'After a new node revision is saved with an empty log message, the log message for the node is empty.'); } - /** - * Gets server-rendered contextual links for the given contextual links IDs. - * - * @param string[] $ids - * An array of contextual link IDs. - * @param string $current_path - * The Drupal path for the page for which the contextual links are rendered. - * - * @return string - * The decoded JSON response body. - */ - protected function renderContextualLinks(array $ids, $current_path) { - $post = []; - for ($i = 0; $i < count($ids); $i++) { - $post['ids[' . $i . ']'] = $ids[$i]; - } - $response = $this->drupalPost('contextual/render', 'application/json', $post, ['query' => ['destination' => $current_path]]); - - return Json::decode($response); - } - /** * Tests the revision translations are correctly reverted. */ diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index af6f6c745d20eda127da778c6841f4a8054627b3..4c56f9eb244cab2c4733fa93d97daee67659f6d6 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -530,11 +530,6 @@ parameters: count: 1 path: modules/config_translation/src/FormElement/DateFormat.php - - - message: "#^Call to an undefined method Drupal\\\\Tests\\\\config_translation\\\\Functional\\\\ConfigTranslationUiTest\\:\\:drupalPostWithFormat\\(\\)\\.$#" - count: 1 - path: modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php - - message: "#^Method Drupal\\\\contact\\\\ContactFormEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#" count: 1 @@ -920,11 +915,6 @@ parameters: count: 1 path: modules/node/tests/src/Functional/NodeRevisionsAllTest.php - - - message: "#^Call to an undefined method Drupal\\\\Tests\\\\node\\\\Functional\\\\NodeRevisionsTest\\:\\:drupalPost\\(\\)\\.$#" - count: 1 - path: modules/node/tests/src/Functional/NodeRevisionsTest.php - - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 1