| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testIlluminateConnection() |
||
| 12 | { |
||
| 13 | Illuminate\Database\Capsule\Manager::schema()->create('test', function (Blueprint $table) { |
||
| 14 | $table->increments('id'); |
||
| 15 | $table->string('email')->unique(); |
||
| 16 | $table->timestamps(); |
||
| 17 | }); |
||
| 18 | |||
| 19 | \Illuminate\Database\Capsule\Manager::table('test')->insert( |
||
| 20 | [ |
||
| 21 | 'email' => '[email protected]' |
||
| 22 | ] |
||
| 23 | ); |
||
| 24 | |||
| 25 | $test = \Illuminate\Database\Capsule\Manager::table('test')->first(); |
||
| 26 | $this->assertNotEmpty($test); |
||
| 27 | \Illuminate\Database\Capsule\Manager::schema()->drop('test'); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |