You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
679 B
PHP
26 lines
679 B
PHP
<?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));
|
|
}
|
|
}
|