From: cash Date: Tue, 29 Nov 2011 01:41:59 +0000 (-0500) Subject: forgot this unit test from a previous commit X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6ca01c470d695c8ae309ea3475899c14cc34dd73;p=lorea%2Felgg.git forgot this unit test from a previous commit --- diff --git a/engine/tests/api/river.php b/engine/tests/api/river.php new file mode 100644 index 000000000..55ddbfeec --- /dev/null +++ b/engine/tests/api/river.php @@ -0,0 +1,21 @@ +assertIdentical($result, "((rv.type = 'object') AND (rv.subtype = 'blog'))"); + + $types = array('object'); + $subtypes = array('blog', 'file'); + $result = elgg_get_river_type_subtype_where_sql('rv', $types, $subtypes, null); + $this->assertIdentical($result, "((rv.type = 'object') AND ((rv.subtype = 'blog') OR (rv.subtype = 'file')))"); + } +}