Fix tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-09-21 17:46:07 +02:00
parent bbcf2fd768
commit 42ccd32740
4 changed files with 8 additions and 11 deletions

View File

@ -41,11 +41,12 @@ class Form extends Model implements HasMedia
'needs_prevention' => 'boolean',
'prevention_text' => EditorData::class,
'prevention_conditions' => Condition::class,
'from' => 'datetime',
'to' => 'datetime',
'registration_from' => 'datetime',
'registration_until' => 'datetime',
];
/** @var array<int, string> */
public $dates = ['from', 'to', 'registration_from', 'registration_until'];
/**
* @return SluggableConfig
*/

View File

@ -28,12 +28,8 @@ class Invoice extends Model
'to' => 'json',
'status' => InvoiceStatus::class,
'via' => BillKind::class,
];
/** @var array<int, string> */
public $dates = [
'sent_at',
'last_remembered_at',
'sent_at' => 'datetime',
'last_remembered_at' => 'datetime',
];
/**

View File

@ -55,7 +55,7 @@ class InvoiceStoreActionTest extends TestCase
], $invoice->to);
}
public function validationDataProvider(): Generator
public static function validationDataProvider(): Generator
{
yield [
['to.address' => ''],

View File

@ -98,7 +98,7 @@ class InvoiceUpdateActionTest extends TestCase
$this->assertDatabaseCount('invoice_positions', 0);
}
public function validationDataProvider(): Generator
public static function validationDataProvider(): Generator
{
yield [
['to.address' => ''],