mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 07:45:22 +00:00
17 lines
359 B
PHP
17 lines
359 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use Tests\TestCase;
|
|
use App\Services\SnowflakeService;
|
|
|
|
class SnowflakeTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function snowflakeTest()
|
|
{
|
|
$expected = 266077397319815168;
|
|
$actual = SnowflakeService::byDate(now()->parse('2021-02-13T05:36:35+00:00'));
|
|
$this->assertEquals($expected, $actual);
|
|
}
|
|
}
|