|
@@ -1,4 +1,5 @@
|
1
|
1
|
<?php
|
|
2
|
+use Illuminate\Database\Query\Builder;
|
2
|
3
|
use Luticate\Utils\Controller\LuticateApplication;
|
3
|
4
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
4
|
5
|
use Luticate\Utils\DataAccess\LuDataAccess;
|
|
@@ -140,19 +141,23 @@ class DatabaseTest extends \PHPUnit_Framework_TestCase
|
140
|
141
|
// 'name' => 'mydb',
|
141
|
142
|
// 'driver' => 'pgsql',
|
142
|
143
|
// 'host' => '172.17.0.1',
|
143
|
|
-// 'database' => 'intra_betaclean',
|
|
144
|
+// 'database' => 'luticate2',
|
144
|
145
|
// 'username' => 'dev',
|
145
|
146
|
// 'password' => 'dev'
|
146
|
147
|
// ]
|
147
|
148
|
// ]];
|
148
|
149
|
// $app = new LuticateApplication($config);
|
149
|
150
|
// $app->setupDatabases();
|
150
|
|
-
|
|
151
|
+//
|
151
|
152
|
// $dbo = new TestTableDbo();
|
152
|
153
|
// $dbo->setId(11);
|
153
|
154
|
// $dbo->setSomeIntegerArray('{}');
|
154
|
155
|
// $dbo->setSomeText("lol2");
|
155
|
|
-
|
|
156
|
+//
|
|
157
|
+// var_dump(TestTableDataAccess::getMultiple(function(Builder $q)
|
|
158
|
+// {
|
|
159
|
+// return $q->where("id", "=", 1);
|
|
160
|
+// }));
|
156
|
161
|
// var_dump(TestTableDataAccess::getSingleById(1));
|
157
|
162
|
// var_dump(TestTableDataAccess::deleteMultiple(function($q)
|
158
|
163
|
// {
|