|
13 | 13 |
|
14 | 14 | namespace CodeIgniter\Database;
|
15 | 15 |
|
| 16 | +use CodeIgniter\Database\Postgre\Connection as PostgreConnection; |
16 | 17 | use CodeIgniter\Test\CIUnitTestCase;
|
17 | 18 | use CodeIgniter\Test\ReflectionHelper;
|
18 | 19 | use PHPUnit\Framework\Attributes\DataProvider;
|
@@ -149,7 +150,7 @@ public function testConnectionGroupWithDSN(): void
|
149 | 150 | public function testConnectionGroupWithDSNPostgre(): void
|
150 | 151 | {
|
151 | 152 | $conn = Config::connect($this->dsnGroupPostgre, false);
|
152 |
| - $this->assertInstanceOf(BaseConnection::class, $conn); |
| 153 | + $this->assertInstanceOf(PostgreConnection::class, $conn); |
153 | 154 |
|
154 | 155 | $this->assertSame('', $this->getPrivateProperty($conn, 'DSN'));
|
155 | 156 | $this->assertSame('localhost', $this->getPrivateProperty($conn, 'hostname'));
|
@@ -205,7 +206,7 @@ public function testConvertDSN(string $input, string $expected): void
|
205 | 206 | // Should deprecate?
|
206 | 207 | $this->dsnGroupPostgreNative['DSN'] = $input;
|
207 | 208 | $conn = Config::connect($this->dsnGroupPostgreNative, false);
|
208 |
| - $this->assertInstanceOf(BaseConnection::class, $conn); |
| 209 | + $this->assertInstanceOf(PostgreConnection::class, $conn); |
209 | 210 |
|
210 | 211 | $method = self::getPrivateMethodInvoker($conn, 'convertDSN');
|
211 | 212 | $method();
|
|
0 commit comments