mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
PR review fixes
This commit is contained in:
@@ -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']));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user