summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/text/tests
diff options
context:
space:
mode:
authorcatch <catch@35733.no-reply.drupal.org>2021-01-18 17:35:30 +0000
committercatch <catch@35733.no-reply.drupal.org>2021-01-18 17:35:30 +0000
commitd722e9d760ecd6eb81d668f5ecbb44a1cdf7e1f2 (patch)
tree867173510370fc9a4a1d70874680ecc119db87ce /core/modules/text/tests
parentab9919c356ad746a4e99b9dd01ee9a2cd0c5ae88 (diff)
downloaddrupal-d722e9d760ecd6eb81d668f5ecbb44a1cdf7e1f2.tar.gz
drupal-d722e9d760ecd6eb81d668f5ecbb44a1cdf7e1f2.zip
Issue #3192221 by mondrake, daffie, longwave: Swap assertIdentical arguments in preparation to replace with assertSame
Diffstat (limited to 'core/modules/text/tests')
-rw-r--r--core/modules/text/tests/src/Kernel/TextSummaryTest.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/modules/text/tests/src/Kernel/TextSummaryTest.php b/core/modules/text/tests/src/Kernel/TextSummaryTest.php
index b7f975fda84..e2c9165ca03 100644
--- a/core/modules/text/tests/src/Kernel/TextSummaryTest.php
+++ b/core/modules/text/tests/src/Kernel/TextSummaryTest.php
@@ -238,10 +238,7 @@ class TextSummaryTest extends KernelTestBase {
*/
public function assertTextSummary($text, $expected, $format = NULL, $size = NULL) {
$summary = text_summary($text, $format, $size);
- $this->assertIdentical($summary, $expected, new FormattableMarkup('<pre style="white-space: pre-wrap">@actual</pre> is identical to <pre style="white-space: pre-wrap">@expected</pre>', [
- '@actual' => $summary,
- '@expected' => $expected,
- ]));
+ $this->assertIdentical($expected, $summary, new FormattableMarkup('<pre style="white-space: pre-wrap">@actual</pre> is identical to <pre style="white-space: pre-wrap">@expected</pre>', ['@actual' => $summary, '@expected' => $expected]));
}
/**