Files
monica/tests/Unit/Helpers/RandomHelperTest.php
T

25 lines
482 B
PHP

<?php
namespace Tests\Unit\Helpers;
use Tests\TestCase;
use App\Helpers\RandomHelper;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class RandomHelperTest extends TestCase
{
use DatabaseTransactions;
public function test_it_returns_a_unique_uuid()
{
$this->assertEquals(
36,
strlen(RandomHelper::uuid())
);
$this->assertInternalType(
'string',
RandomHelper::uuid()
);
}
}