mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-07 10:11:17 +02:00
14 lines
397 B
PHP
14 lines
397 B
PHP
<?php
|
|
|
|
class DataQueryTest extends SapphireTest {
|
|
/**
|
|
* Test the join() method of the DataQuery object
|
|
*/
|
|
function testJoin() {
|
|
$dq = new DataQuery('Member');
|
|
$dq->join("INNER JOIN \"Group_Members\" ON \"Group_Members\".\"MemberID\" = \"Member\".\"ID\"");
|
|
$this->assertContains("INNER JOIN \"Group_Members\" ON \"Group_Members\".\"MemberID\" = \"Member\".\"ID\"", $dq->sql());
|
|
}
|
|
}
|
|
|
|
?>
|