Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Oct 11, 2024
1 parent 624ef6a commit db7fb48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
options: --name=mssql --health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -C -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Install ODBC driver.
run: |
sudo curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
- name: Checkout.
uses: actions/checkout@v3

Expand Down
4 changes: 2 additions & 2 deletions tests/Support/TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function getConnection(bool $fixture = false): PdoConnectionInterface
protected static function getDb(): PdoConnectionInterface
{
$dsn = (new Dsn('sqlsrv', 'localhost', 'yiitest'))->asString();
$dsn .= ';TrustServerCertificate=yes';
$dsn .= ';Encrypt=no';

return new Connection(
new Driver($dsn, 'SA', 'YourStrong!Passw0rd'),
Expand All @@ -50,7 +50,7 @@ protected function getDsn(): string
{
if ($this->dsn === '') {
$this->dsn = (new Dsn('sqlsrv', 'localhost', 'yiitest'))->asString();
$this->dsn .= ';TrustServerCertificate=yes';
$this->dsn .= ';Encrypt=no';
}

return $this->dsn;
Expand Down

0 comments on commit db7fb48

Please sign in to comment.