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',
|
'needs_prevention' => 'boolean',
|
||||||
'prevention_text' => EditorData::class,
|
'prevention_text' => EditorData::class,
|
||||||
'prevention_conditions' => Condition::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
|
* @return SluggableConfig
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,12 +28,8 @@ class Invoice extends Model
|
||||||
'to' => 'json',
|
'to' => 'json',
|
||||||
'status' => InvoiceStatus::class,
|
'status' => InvoiceStatus::class,
|
||||||
'via' => BillKind::class,
|
'via' => BillKind::class,
|
||||||
];
|
'sent_at' => 'datetime',
|
||||||
|
'last_remembered_at' => 'datetime',
|
||||||
/** @var array<int, string> */
|
|
||||||
public $dates = [
|
|
||||||
'sent_at',
|
|
||||||
'last_remembered_at',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -55,7 +55,7 @@ class InvoiceStoreActionTest extends TestCase
|
||||||
], $invoice->to);
|
], $invoice->to);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validationDataProvider(): Generator
|
public static function validationDataProvider(): Generator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
['to.address' => ''],
|
['to.address' => ''],
|
||||||
|
|
|
@ -98,7 +98,7 @@ class InvoiceUpdateActionTest extends TestCase
|
||||||
$this->assertDatabaseCount('invoice_positions', 0);
|
$this->assertDatabaseCount('invoice_positions', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validationDataProvider(): Generator
|
public static function validationDataProvider(): Generator
|
||||||
{
|
{
|
||||||
yield [
|
yield [
|
||||||
['to.address' => ''],
|
['to.address' => ''],
|
||||||
|
|
Loading…
Reference in New Issue