This commit is contained in:
Lunny Xiao 2024-04-19 19:50:06 +08:00
parent f8d57dcfa0
commit 05674f7a38
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 9 additions and 5 deletions

View File

@ -11,12 +11,16 @@ import (
"github.com/stretchr/testify/assert"
)
func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) {
// premigration
type OAuth2Application struct {
ID int64
}
// premigration
type OAuth2Application struct {
ID int64
}
func (OAuth2Application) TableName() string {
return "oauth2_application"
}
func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) {
// Prepare and load the testing database
x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application))
defer deferable()