summaryrefslogtreecommitdiff
path: root/tests/Unit/Database
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-10-13 21:06:24 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-10-13 21:26:21 +0200
commitaf09865f3da55ae8e50ee0bf9f5ebc7d005dfcf5 (patch)
treebb0a935fc61d5aeef9fa4e79a489723eeb46fe4c /tests/Unit/Database
parent9921c5002a1883798fb31fc27d58c5b011a6bd37 (diff)
Fix/Cleanup tests for DatabaseServiceProvider
Diffstat (limited to 'tests/Unit/Database')
-rw-r--r--tests/Unit/Database/DatabaseServiceProviderTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Unit/Database/DatabaseServiceProviderTest.php b/tests/Unit/Database/DatabaseServiceProviderTest.php
index c3e4c5d0..241c47b7 100644
--- a/tests/Unit/Database/DatabaseServiceProviderTest.php
+++ b/tests/Unit/Database/DatabaseServiceProviderTest.php
@@ -100,7 +100,10 @@ class DatabaseServiceProviderTest extends ServiceProviderTest
$app = $this->getApp(['get', 'make', 'instance']);
$this->setExpects($app, 'get', ['config'], $config);
- $this->setExpects($config, 'get', ['database'], $dbConfigData, $this->atLeastOnce());
+ $config->expects($this->exactly(2))
+ ->method('get')
+ ->withConsecutive(['timezone'], ['database'])
+ ->willReturnOnConsecutiveCalls('UTC', $dbConfigData);
$app->expects($this->atLeastOnce())
->method('make')