We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80882e1 commit 6e0a07dCopy full SHA for 6e0a07d
models/repo_test.go
@@ -9,6 +9,7 @@ import (
9
"testing"
10
11
"code.gitea.io/gitea/modules/markup"
12
+ "code.gitea.io/gitea/modules/notification"
13
"code.gitea.io/gitea/modules/setting"
14
15
"github.com/Unknwon/com"
@@ -162,6 +163,8 @@ func TestTransferOwnership(t *testing.T) {
162
163
repo.Owner = AssertExistsAndLoadBean(t, &User{ID: repo.OwnerID}).(*User)
164
assert.NoError(t, TransferOwnership(doer, "user2", repo))
165
166
+ notification.NotifyRepositoryTransfered(doer, doer, repo)
167
+
168
transferredRepo := AssertExistsAndLoadBean(t, &Repository{ID: 3}).(*Repository)
169
assert.EqualValues(t, 2, transferredRepo.OwnerID)
170
0 commit comments