From 08a479aede2d774b2f902bbe6743f307e83f978a Mon Sep 17 00:00:00 2001 From: Ivan Sidorov Date: Wed, 14 Feb 2024 15:42:44 +0000 Subject: [PATCH] Rename to TestCase::assertHasIssue --- tests/TestCase.php | 2 +- tests/Traits/InvalidCodeAnalysisWithIssuesTestTrait.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 672495850..b85a3c5f2 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -158,7 +158,7 @@ class TestCase extends BaseTestCase return $this->getName($withDataSet); } - public static function assertHasIssueType(string $expected, string $message = ''): void + public static function assertHasIssue(string $expected, string $message = ''): void { $issue_messages = []; $res = false; diff --git a/tests/Traits/InvalidCodeAnalysisWithIssuesTestTrait.php b/tests/Traits/InvalidCodeAnalysisWithIssuesTestTrait.php index ae7c00b62..94eab5e61 100644 --- a/tests/Traits/InvalidCodeAnalysisWithIssuesTestTrait.php +++ b/tests/Traits/InvalidCodeAnalysisWithIssuesTestTrait.php @@ -107,6 +107,6 @@ trait InvalidCodeAnalysisWithIssuesTestTrait $this->addFile($file_path, $code); $this->analyzeFile($file_path, new Context()); - $this->assertHasIssueType($error_message); + $this->assertHasIssue($error_message); } }