Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Apr 6, 2020
1 parent 73db1bb commit e29367a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
"test": [
"vendor/bin/phpunit",
"vendor/bin/php-cs-test",
"vendor/bin/php-tlint-test .",
"vendor/bin/php-tlint-test ./src",
"vendor/bin/php-md-test ./src",
"vendor/bin/php-insights-test",
"vendor/bin/php-mn-test",
"vendor/bin/php-mn-test ./src",
"vendor/bin/php-stan-test"
],
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing" force="true"/>
<env name="DB_CONNECTION" value="testing"/>
</php>
</phpunit>
11 changes: 0 additions & 11 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ protected function getPackageProviders($app)
];
}

protected function getEnvironmentSetUp($app)
{
// Setup default database to use sqlite :memory:
$app['config']->set('database.default', 'testbench');
$app['config']->set('database.connections.testbench', [
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
]);
}

protected function assertAttached(array $expectedIds, array $syncResult): void
{
$this->assertArrayHasKey('attached', $syncResult);
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/elbgoods/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require-dev": {
"elbgoods/ci-test-tools": "^1.7.2"
"elbgoods/ci-test-tools": "^1.9.2"
}
}

0 comments on commit e29367a

Please sign in to comment.