PR review fixes

This commit is contained in:
Matej Bačo
2026-05-09 12:53:11 +02:00
parent 43777ee6d9
commit a5ddc465e6
+10
View File
@@ -95,6 +95,7 @@ class CommentTest extends TestCase
$this->assertNotNull($newTip);
$this->assertNotEquals('Old tip that should be ignored', $newTip);
$this->assertContains($newTip, $this->getTips());
}
public function testParseOldStateFormatWithOnlyBuilds(): void
@@ -126,6 +127,7 @@ class CommentTest extends TestCase
$this->assertNotNull($firstTip);
$this->assertNotEmpty($firstTip);
$this->assertContains($firstTip, $this->getTips());
$second = $comment->generateComment();
$secondTip = $this->extractTip($second);
@@ -141,4 +143,12 @@ class CommentTest extends TestCase
return null;
}
private function getTips(): array
{
$reflection = new \ReflectionClass(Comment::class);
$property = $reflection->getProperty('tips');
return $property->getValue(new Comment(['consoleHostname' => 'localhost']));
}
}