@@ -16,6 +16,7 @@ class GiteaTest extends Base
1616
1717 protected string $ webhookEventHeader = 'X-Gitea-Event ' ;
1818 protected string $ webhookSignatureHeader = 'X-Gitea-Signature ' ;
19+ protected string $ avatarDomain = 'gravatar.com ' ;
1920
2021 protected function createVCSAdapter (): Git
2122 {
@@ -749,7 +750,7 @@ public function testGetCommit(): void
749750 $ this ->assertSame ($ commitHash , $ result ['commitHash ' ]);
750751 $ this ->assertSame ('utopia ' , $ result ['commitAuthor ' ]);
751752 $ this ->assertStringStartsWith ($ customMessage , $ result ['commitMessage ' ]);
752- $ this ->assertStringContainsString (' gravatar.com ' , $ result ['commitAuthorAvatar ' ]);
753+ $ this ->assertStringContainsString ($ this -> avatarDomain , $ result ['commitAuthorAvatar ' ]);
753754 $ this ->assertNotEmpty ($ result ['commitUrl ' ]);
754755
755756 $ this ->vcsAdapter ->deleteRepository (static ::$ owner , $ repositoryName );
@@ -777,7 +778,7 @@ public function testGetLatestCommit(): void
777778 $ this ->assertNotEmpty ($ commit1 ['commitHash ' ]);
778779 $ this ->assertSame ('utopia ' , $ commit1 ['commitAuthor ' ]);
779780 $ this ->assertStringStartsWith ($ firstMessage , $ commit1 ['commitMessage ' ]);
780- $ this ->assertStringContainsString (' gravatar.com ' , $ commit1 ['commitAuthorAvatar ' ]);
781+ $ this ->assertStringContainsString ($ this -> avatarDomain , $ commit1 ['commitAuthorAvatar ' ]);
781782 $ this ->assertNotEmpty ($ commit1 ['commitUrl ' ]);
782783
783784 $ commit1Hash = $ commit1 ['commitHash ' ];
0 commit comments