Files
newznab-tmux-NNTmux/tests/Install/InstallTest.php
T
2026-02-13 14:11:33 +01:00

40 lines
917 B
PHP

<?php
/**
<?php
/**
* This file is part of NNTmux.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author DariusIII
* @copyright (c) 2017, NNTmux
*
* @version 0.0.1
*/
namespace Tests\Install;
use Tests\TestCase;
/**
* Class InstallTest.
*/
final class InstallTest extends TestCase
{
public function test_full_install(): void
{
// Skip in CI when using SQLite in-memory database
if (config('database.default') === 'testing' || config('database.default') === 'sqlite') {
$this->markTestSkipped('Full install test requires a real database connection, not SQLite in-memory.');
}
$this->artisan('migrate:fresh', ['--seed' => true])
->assertExitCode(0);
$this->assertTrue(true, 'NNTmux installation completed successfully');
}
}