Skip to content

Commit

Permalink
add laravel 10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-oyama committed Apr 5, 2023
1 parent 6d66873 commit f0d266f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"php": ">=8",
"ext-json": "*",
"ext-pdo": "*",
"laravel/framework": "~8|~9"
"laravel/framework": "~8|~9|~10"
},
"require-dev": {
"orchestra/testbench": "~6",
"phpunit/phpunit": "~9"
"orchestra/testbench": "~6|~7|~8",
"phpunit/phpunit": "~10"
},
"autoload": {
"psr-4": {
Expand Down
20 changes: 10 additions & 10 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="true"
stopOnFailure="true">
<testsuite name="all">
<directory suffix="Test.php">./tests</directory>
</testsuite>
stopOnFailure="true"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuite name="all">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Colopl/TiDB/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function cleanupDatabaseRecords()
}
}

protected function getConnection($connection = null)
protected function getConnection($connection = null, $table = null)
{
if (!static::$databasePrepared) {
$config = config('database.connections.main');
Expand Down

0 comments on commit f0d266f

Please sign in to comment.