|
@@ -192,24 +192,24 @@ class DatabaseTest extends \PHPUnit_Framework_TestCase
|
192
|
192
|
{
|
193
|
193
|
public function testSetup()
|
194
|
194
|
{
|
195
|
|
- $config = ['databases' => [
|
196
|
|
- [
|
197
|
|
- 'name' => 'mydb',
|
198
|
|
- 'driver' => 'pgsql',
|
199
|
|
- 'host' => '172.17.0.1',
|
200
|
|
- 'database' => 'luticate2',
|
201
|
|
- 'username' => 'dev',
|
202
|
|
- 'password' => 'dev'
|
203
|
|
- ]
|
204
|
|
- ]];
|
205
|
|
- $app = new LuticateApplication($config);
|
206
|
|
- $app->setupDatabases();
|
207
|
|
-
|
208
|
|
- var_dump(SpTest::execute(42));
|
209
|
|
- var_dump(SpTest::execute(4));
|
210
|
|
- var_dump(SpTest2::execute(42));
|
211
|
|
- var_dump(SpTest2::executePaginated(42, 0, 2));
|
212
|
|
- var_dump(SpTest2::executePaginated(42, 1, 2));
|
|
195
|
+// $config = ['databases' => [
|
|
196
|
+// [
|
|
197
|
+// 'name' => 'mydb',
|
|
198
|
+// 'driver' => 'pgsql',
|
|
199
|
+// 'host' => '172.17.0.1',
|
|
200
|
+// 'database' => 'luticate2',
|
|
201
|
+// 'username' => 'dev',
|
|
202
|
+// 'password' => 'dev'
|
|
203
|
+// ]
|
|
204
|
+// ]];
|
|
205
|
+// $app = new LuticateApplication($config);
|
|
206
|
+// $app->setupDatabases();
|
|
207
|
+
|
|
208
|
+// var_dump(SpTest::execute(42));
|
|
209
|
+// var_dump(SpTest::execute(4));
|
|
210
|
+// var_dump(SpTest2::execute(42));
|
|
211
|
+// var_dump(SpTest2::executePaginated(42, 0, 2)->jsonSerialize());
|
|
212
|
+// var_dump(SpTest2::executePaginated(42, 1, 2)->jsonSerialize());
|
213
|
213
|
//
|
214
|
214
|
// $dbo = new TestTableDbo();
|
215
|
215
|
// $dbo->setId(11);
|