Files
summercms/lagoon/attach/file_test.go
Jakub Zych 2d84ae4565 test(05-04): add failing tests for attach File, Thumb, and bucket
- ThumbFilename/PartitionDirectory/File.Thumb behavior tests
- OpenBucket fail-loud and memblob tests
- Migrate empty plugin list must create system_files
2026-09-18 19:53:00 +02:00

20 lines
374 B
Go

package attach
import "testing"
func TestFileTableName(t *testing.T) {
if got := (File{}).TableName(); got != "system_files" {
t.Fatalf("TableName = %q, want system_files", got)
}
}
func TestFileSelfRegisters(t *testing.T) {
for _, m := range All() {
switch m.(type) {
case *File, File:
return
}
}
t.Fatal("File must self-register via attach.Register")
}