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

    var tx = env.db.createTransaction();
    return tx.exec([
      env.db.insert().into(parentTable).values([parentRow]),
      env.db.insert().into(childTable).values([childRow])
    ]);
  }).then(function() {
    var checkFn = function(timing) {
      checker.checkForeignKeysForDelete(
          /** @type {!lf.schema.Table} */ (parentTable), [parentRow], timing);
    };
    assertChecks(constraintTiming, checkFn);
  });
}
@param {!lf.ConstraintTiming} constraintTiming
@return {!IThenable}