diff --git a/core/modules/system/src/Tests/Theme/TableTest.php b/core/modules/system/src/Tests/Theme/TableTest.php
index 0356f1a..42f8413 100644
--- a/core/modules/system/src/Tests/Theme/TableTest.php
+++ b/core/modules/system/src/Tests/Theme/TableTest.php
@@ -225,11 +225,11 @@ public function testThemeTableResponsivePriorityNotEnabled() {
'#responsive' => FALSE,
);
$this->render($table);
- $this->assertNoRaw('
1 | ', 'Header 1: the priority-medium class was not applied.');
- $this->assertNoRaw('2 | ', 'Header 2: the priority-low class was not applied.');
+ $this->assertRaw('1 | ', 'Header 1: the priority-medium class was not applied.');
+ $this->assertRaw('2 | ', 'Header 2: the priority-low class was not applied.');
$this->assertRaw('3 | ', 'Header 3: no priority classes were applied.');
- $this->assertNoRaw('4 | ', 'Cell 1: the priority-medium class was not applied.');
- $this->assertNoRaw('5 | ', 'Cell 2: the priority-low class was not applied');
+ $this->assertRaw('4 | ', 'Cell 1: the priority-medium class was not applied.');
+ $this->assertRaw('5 | ', 'Cell 2: the priority-low class was not applied');
$this->assertRaw('6 | ', 'Cell 3: no priority classes were applied.');
}