Passed
Push — testing ( 57c125...199f7f )
by Hennik
03:23
created

PostgresTest::createApplication()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 11
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
class PostgresTest extends MysqlTest
4
{
5
    protected $is_postgres = true;
6
7
    /**
8
     * Boots the application.
9
     *
10
     * @return \Illuminate\Foundation\Application
11
     */
12
    public function createApplication()
13
    {
14
        $app = parent::createApplication();
15
16
        $app['config']->set('database.default', 'pgsql');
17
        $app['config']->set('database.connections.pgsql.host', env('DB_HOST', '127.0.0.1'));
18
        $app['config']->set('database.connections.pgsql.database', 'spatial_test');
19
        $app['config']->set('database.connections.pgsql.username', 'postgres');
20
        $app['config']->set('database.connections.pgsql.password', '');
21
22
        return $app;
23
    }
24
25
    protected function isMySQL8AfterFix()
26
    {
27
        return false;
28
    }
29
}
30