public function test_a_string_class_can_be_use_as_extend() { ConnectionManager::extend('custom3', StubConnection::class); $driver = ConnectionManager::resolve('custom3'); $this->assertContains('stub', $driver); }
/** * Register the connections * @return array */ protected function setupConnection() { ConnectionManager::registerConnections($this->app['config']['database']['connections']); }