blob: aa4dbc7ba3abeb8ad3b3f674d2d55361241c8af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace Engelsystem\Test\Feature\Database;
use Engelsystem\Config\Config;
use Engelsystem\Database\Database;
use Engelsystem\Database\DatabaseServiceProvider;
class DatabaseServiceProviderTest extends DatabaseTest
{
/**
* @covers \Engelsystem\Database\DatabaseServiceProvider::register()
*/
public function testRegister()
{
$this->app->instance('config', new Config([
'database' => $this->getDbConfig(),
'timezone' => 'UTC',
]));
$serviceProvider = new DatabaseServiceProvider($this->app);
$serviceProvider->register();
$this->assertTrue($this->app->has(Database::class));
}
}
|