Files
lsky-pro/tests/Unit/UtilTest.php
T
2021-12-16 11:02:33 +08:00

38 lines
753 B
PHP

<?php
namespace Tests\Unit;
use App\Enums\ConfigKey;
use App\Utils;
use Illuminate\Support\Facades\Cache;
use Tests\TestCase;
class UtilTest extends TestCase
{
/**
* A basic unit test example.
*
* @return void
*/
public function test_config()
{
Cache::forget('configs');
if (is_array(Utils::config())) {
$this->assertTrue(true);
}
if (is_string(Utils::config(ConfigKey::SiteName))) {
$this->assertTrue(true);
}
if (is_array(Utils::config(ConfigKey::MailConfigs))) {
$this->assertTrue(true);
}
if (is_array(Utils::config(ConfigKey::MailConfigs.'.mailers'))) {
$this->assertTrue(true);
}
}
}