|
|
@@ -1,7 +1,5 @@
|
|
|
<?php
|
|
|
/**
|
|
|
- * PHP Version 5.4
|
|
|
- *
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
*
|
|
|
@@ -1696,6 +1694,18 @@ class QueryTest extends TestCase {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Inserting nothing should not generate an error.
|
|
|
+ *
|
|
|
+ * @expectedException RuntimeException
|
|
|
+ * @expectedExceptionMessage At least 1 column is required to perform an insert.
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function testInsertNothing() {
|
|
|
+ $query = new Query($this->connection);
|
|
|
+ $query->insert([]);
|
|
|
+ }
|
|
|
+
|
|
|
+/**
|
|
|
* Test inserting a single row.
|
|
|
*
|
|
|
* @return void
|