OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

35
tests/Unit/TestCase.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
namespace Unit;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Leantime\Core\Application;
abstract class TestCase extends BaseTestCase
{
/**
* Creates the application.
*/
public function createApplication(): Application
{
$app = require __DIR__.'/../../bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
return $app;
}
protected function setUp(): void
{
parent::setUp();
// Set up default configurations for testing
config([
'app.env' => 'testing',
'cache.default' => 'array',
'session.driver' => 'array',
'database.default' => [],
]);
}
}