Completed
Pull Request — master (#2893)
by Šimon
63:28
created

PostgreSQL100PlatformTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetListSequencesSQL() 0 12 1
A createPlatform() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\DBAL\Platforms;
6
7
use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
8
9
class PostgreSQL100PlatformTest extends PostgreSQL94PlatformTest
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function createPlatform() : PostgreSQL100Platform
15
    {
16
        return new PostgreSQL100Platform();
17
    }
18
19
    public function testGetListSequencesSQL() : void
20
    {
21
        $this->assertSame(
22
            "SELECT sequence_name AS relname,
23
                       sequence_schema AS schemaname,
24
                       minimum_value AS min_value, 
25
                       increment AS increment_by
26
                FROM   information_schema.sequences
27
                WHERE  sequence_catalog = 'test_db'
28
                AND    sequence_schema NOT LIKE 'pg\_%'
29
                AND    sequence_schema != 'information_schema'",
30
            $this->_platform->getListSequencesSQL('test_db')
31
        );
32
    }
33
}
34