mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Remove unused tests
This commit is contained in:
parent
fb584c02a6
commit
6bae1d0327
2 changed files with 0 additions and 48 deletions
|
@ -1,32 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Tests\Unit;
|
|
||||||
|
|
||||||
use Carbon\Carbon;
|
|
||||||
use DateTime;
|
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
class DateTimeTest extends TestCase
|
|
||||||
{
|
|
||||||
/** @test */
|
|
||||||
public function mastodonTimestamp()
|
|
||||||
{
|
|
||||||
$ts = Carbon::createFromFormat(DateTime::ISO8601, '2019-09-16T02:41:57Z');
|
|
||||||
$this->assertEquals(9, $ts->month);
|
|
||||||
$this->assertEquals(16, $ts->day);
|
|
||||||
$this->assertEquals(2019, $ts->year);
|
|
||||||
$this->assertEquals(2, $ts->hour);
|
|
||||||
$this->assertEquals(41, $ts->minute);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @test */
|
|
||||||
public function p3kTimestamp()
|
|
||||||
{
|
|
||||||
$ts = Carbon::createFromFormat(DateTime::ISO8601, '2019-09-16T08:40:55+10:00');
|
|
||||||
$this->assertEquals(9, $ts->month);
|
|
||||||
$this->assertEquals(16, $ts->day);
|
|
||||||
$this->assertEquals(2019, $ts->year);
|
|
||||||
$this->assertEquals(8, $ts->hour);
|
|
||||||
$this->assertEquals(40, $ts->minute);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Tests\Unit;
|
|
||||||
|
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
class SnowflakeTest extends TestCase
|
|
||||||
{
|
|
||||||
/** @test */
|
|
||||||
public function snowflakeTest()
|
|
||||||
{
|
|
||||||
$expected = 266077397319815168;
|
|
||||||
$actual = 266077397319815168;
|
|
||||||
$this->assertEquals($expected, $actual);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue