Fix tests
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
bbcf2fd768
commit
42ccd32740
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -55,7 +55,7 @@ class InvoiceStoreActionTest extends TestCase
|
|||
], $invoice->to);
|
||||
}
|
||||
|
||||
public function validationDataProvider(): Generator
|
||||
public static function validationDataProvider(): Generator
|
||||
{
|
||||
yield [
|
||||
['to.address' => ''],
|
||||
|
|
|
@ -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' => ''],
|
||||
|
|
Loading…
Reference in New Issue