Adding upstream version 0.28.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
88f1d47ab6
commit
e28c88ef14
933 changed files with 194711 additions and 0 deletions
20
core/record_proxy_test.go
Normal file
20
core/record_proxy_test.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package core_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
)
|
||||
|
||||
func TestBaseRecordProxy(t *testing.T) {
|
||||
p := core.BaseRecordProxy{}
|
||||
|
||||
record := core.NewRecord(core.NewBaseCollection("test"))
|
||||
record.Id = "test"
|
||||
|
||||
p.SetProxyRecord(record)
|
||||
|
||||
if p.ProxyRecord() == nil || p.ProxyRecord().Id != p.Id || p.Id != "test" {
|
||||
t.Fatalf("Expected proxy record to be set")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue