blob: 6931b9f41c2f2d7d52f94f40aaa95d5438f03080 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/**
* Elgg Test river api
*
* @package Elgg
* @subpackage Test
*/
class ElggCoreRiverAPITest extends ElggCoreUnitTest {
public function testElggTypeSubtypeWhereSQL() {
$types = array('object');
$subtypes = array('blog');
$result = elgg_get_river_type_subtype_where_sql('rv', $types, $subtypes, null);
$this->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')))");
}
}
|