Skip to content

Commit 9564b93

Browse files
authored
Merge pull request #485 from linawolf/fix-risky-tests
Fix risky tests
2 parents 31c955a + af6921e commit 9564b93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/guides-restructured-text/tests/unit/Parser/Productions/GridTableRuleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function testTableNotClosed(): void
270270
$context = $this->createContext($input);
271271
$this->rule->apply($context);
272272

273-
$this->logger->hasError('Malformed table');
273+
self::assertTrue($this->logger->hasErrorThatContains('Malformed table'));
274274
}
275275

276276
public function testErrorMultipleHeaderRows(): void
@@ -290,7 +290,7 @@ public function testErrorMultipleHeaderRows(): void
290290
$context = $this->createContext($input);
291291
$this->rule->apply($context);
292292

293-
$this->logger->hasError('Malformed table: multiple "header rows" using "===" were found');
293+
self::assertTrue($this->logger->hasErrorThatContains('Malformed table: multiple "header rows" using "===" were found'));
294294
}
295295

296296
public function testNotEndingWithWhiteLine(): never
@@ -312,6 +312,6 @@ public function testNotEndingWithWhiteLine(): never
312312
$context = $this->createContext($input);
313313
$this->rule->apply($context);
314314

315-
$this->logger->hasError('Malformed table: multiple "header rows" using "===" were found');
315+
self::assertTrue($this->logger->hasErrorThatContains('Malformed table: multiple "header rows" using "===" were found'));
316316
}
317317
}

0 commit comments

Comments
 (0)