function checkForeignKeysForInsert(constraintTiming) {
  var schema = lf.testing.schemas.getOneForeignKey(constraintTiming);
  return setUpEnvForSchema(schema).then(function() {
    var childTable = env.schema.table('Child');
    var childRow = childTable.createRow({id: 'dummyId'});

    var checkFn = function(timing) {
      checker.checkForeignKeysForInsert(childTable, [childRow], timing);
    };
    assertChecks(constraintTiming, checkFn);
  });
}
Asserts that ConstraintChecker#checkForeignKeysForInsert() throws an error if
the referred keys do not exist, for constraints that are of the given
constraint timing.
@param {!lf.ConstraintTiming} constraintTiming
@return {!IThenable}