diff --git a/models/auth/oauth2_test.go b/models/auth/oauth2_test.go index 122d43098c..fe6cbf6cf2 100644 --- a/models/auth/oauth2_test.go +++ b/models/auth/oauth2_test.go @@ -13,7 +13,12 @@ import ( "github.com/stretchr/testify/assert" ) -//////////////////// Application +func TestApplicationTableName(t *testing.T) { + e := unittest.GetXORMEngine() + tableInfo, err := e.TableInfo(new(auth_model.OAuth2Application)) + assert.NoError(t, err) + assert.EqualValues(t, "oauth2_application", tableInfo.Name) +} func TestOAuth2Application_GenerateClientSecret(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase())