diff --git a/tests/share/schema/test_tables.xml b/tests/share/schema/test_tables.xml index e17778b..d53982f 100644 --- a/tests/share/schema/test_tables.xml +++ b/tests/share/schema/test_tables.xml @@ -41,6 +41,21 @@ + + + Local non-replication-safe database identifier + + + Link to A-table + + + Y1-field + + + Y2-field + + + Local non-replication-safe database identifier diff --git a/tests_templates/053-create_children.phpt b/tests_templates/053-create_children.phpt new file mode 100644 index 0000000..0ebbb48 --- /dev/null +++ b/tests_templates/053-create_children.phpt @@ -0,0 +1,27 @@ +--TEST-- +test for creating child objects with guid parent field +--SKIPIF-- + +--INI-- +midgard.engine = On +midgard.http = On +midgard.memory_debug = Off +midgard.configuration= +midgard.configuration_file=[[CFG_FILE]] +report_memleaks = On +--FILE-- +create(); + $y = new ytype(); + $y->objectguid = $a->guid; + + var_dump($y->create()); + var_dump($y->delete()); + $a->delete(); +?> +===DONE=== +--EXPECTF-- +bool(true) +bool(true) +===DONE=== \ No newline at end of file