chore: code refactor via rector
This commit is contained in:
@@ -9,7 +9,7 @@ use Tests\TestCase;
|
||||
class RemoteEmailTest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function it_can_create_a_remote_email_with_factory()
|
||||
public function it_can_create_a_remote_email_with_factory(): void
|
||||
{
|
||||
$remoteEmail = RemoteEmail::factory()->create();
|
||||
|
||||
@@ -19,7 +19,7 @@ class RemoteEmailTest extends TestCase
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_has_correct_fillable_attributes()
|
||||
public function it_has_correct_fillable_attributes(): void
|
||||
{
|
||||
$timestamp = now();
|
||||
$remoteEmailData = [
|
||||
@@ -34,7 +34,7 @@ class RemoteEmailTest extends TestCase
|
||||
'timestamp' => $timestamp,
|
||||
];
|
||||
|
||||
$remoteEmail = RemoteEmail::create($remoteEmailData);
|
||||
$remoteEmail = RemoteEmail::query()->create($remoteEmailData);
|
||||
|
||||
foreach ($remoteEmailData as $key => $value) {
|
||||
if ($key === 'timestamp') {
|
||||
@@ -47,7 +47,7 @@ class RemoteEmailTest extends TestCase
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_casts_to_field_to_array()
|
||||
public function it_casts_to_field_to_array(): void
|
||||
{
|
||||
$to = ['test1@example.com', 'test2@example.com'];
|
||||
$remoteEmail = RemoteEmail::factory()->create(['to' => $to]);
|
||||
@@ -57,7 +57,7 @@ class RemoteEmailTest extends TestCase
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_casts_timestamp_to_datetime()
|
||||
public function it_casts_timestamp_to_datetime(): void
|
||||
{
|
||||
$timestamp = now();
|
||||
$remoteEmail = RemoteEmail::factory()->create(['timestamp' => $timestamp]);
|
||||
|
||||
Reference in New Issue
Block a user