From 2f19a7cd6021baf119887cdcf7780a9da6e9f761 Mon Sep 17 00:00:00 2001 From: michalsn Date: Fri, 27 Dec 2024 12:24:07 +0100 Subject: [PATCH] cleanup --- .github/workflows/phpunit.yml | 2 +- tests/_support/TestCase.php | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index cd5209a..a63634b 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -146,7 +146,7 @@ jobs: with: php-version: ${{ matrix.php-versions }} tools: composer, phive, phpunit - extensions: intl, json, mbstring, gd, xdebug, xml, sqlite3, sqlsrv-5.10.1, oci8, pgsql + extensions: intl, json, mbstring, gd, xdebug, xml, sqlite3, sqlsrv, oci8, pgsql coverage: xdebug env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/tests/_support/TestCase.php b/tests/_support/TestCase.php index 4e8009a..0b956db 100644 --- a/tests/_support/TestCase.php +++ b/tests/_support/TestCase.php @@ -41,16 +41,4 @@ protected function tearDown(): void // Reset the current time. Time::setTestNow(); } - - /** - * Handle custom field type conversion for SQLSRV - */ - public function field(string $name): string - { - if ($this->db->DBDriver === 'SQLSRV') { - return "CONVERT(VARCHAR(MAX), {$name})"; - } - - return $name; - } }