diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-10-13 21:06:24 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-10-13 21:26:21 +0200 |
commit | af09865f3da55ae8e50ee0bf9f5ebc7d005dfcf5 (patch) | |
tree | bb0a935fc61d5aeef9fa4e79a489723eeb46fe4c /tests/Unit/Database/DatabaseServiceProviderTest.php | |
parent | 9921c5002a1883798fb31fc27d58c5b011a6bd37 (diff) |
Fix/Cleanup tests for DatabaseServiceProvider
Diffstat (limited to 'tests/Unit/Database/DatabaseServiceProviderTest.php')
-rw-r--r-- | tests/Unit/Database/DatabaseServiceProviderTest.php | 5 |
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') |