fix: Tests and postgres image

This commit is contained in:
Steffen Beisenherz
2022-10-23 15:17:18 +02:00
parent 45f0e11f69
commit 54c5d34886
3 changed files with 8 additions and 4 deletions
+3 -2
View File
@@ -101,11 +101,12 @@ class ContainerTest extends TestCase
{
$container = PostgresContainer::make('latest', 'test')
->withPostgresUser('test')
->withPostgresDatabase('foo');
->withPostgresDatabase('foo')
->run();
$pdo = new \PDO(
sprintf('postgres:host=%s;port=3306', $container->getAddress()),
sprintf('postgres:host=%s;port=5432', $container->getAddress()),
'test',
'test',
);