summaryrefslogtreecommitdiff
path: root/test/QueryBuilderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/QueryBuilderTest.php')
-rw-r--r--test/QueryBuilderTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/QueryBuilderTest.php b/test/QueryBuilderTest.php
new file mode 100644
index 0000000..27d0772
--- /dev/null
+++ b/test/QueryBuilderTest.php
@@ -0,0 +1,11 @@
+<?php
+
+class QueryBuilderTest extends PHPUnit_Framework_TestCase {
+
+ public function testFindManyQuery() {
+ ORM::for_table('widget')->find_many();
+ $expected = "SELECT * FROM `widget`";
+ $this->assertEquals($expected, ORM::get_last_query());
+ }
+
+} \ No newline at end of file