2019-12-17 18:25:56 +01:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2019-12-21 17:24:29 +01:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2019-12-17 18:25:56 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestEvent_TableName(t *testing.T) {
|
|
|
|
event := &Event{EventSlug: "christmas-2000"}
|
|
|
|
tableName := event.TableName()
|
|
|
|
|
|
|
|
assert.Equal(t, "events", tableName)
|
|
|
|
}
|