We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef04957 commit a3e5db3Copy full SHA for a3e5db3
1 file changed
tests/system/Database/Live/ModelTest.php
@@ -1223,6 +1223,20 @@ public function testThrowsWithNoPrimaryKey()
1223
1224
//--------------------------------------------------------------------
1225
1226
+ /**
1227
+ * @expectedException \CodeIgniter\Exceptions\ModelException
1228
+ * @expectedExceptionMessage `Tests\Support\Models\UserModel` model class does not have a valid dateFormat.
1229
+ */
1230
+ public function testThrowsWithNoDateFormat()
1231
+ {
1232
+ $model = new UserModel();
1233
+ $this->setPrivateProperty($model, 'dateFormat', '');
1234
+
1235
+ $model->find(1);
1236
+ }
1237
1238
+ //--------------------------------------------------------------------
1239
1240
public function testInsertID()
1241
{
1242
$model = new JobModel();
0 commit comments