mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
migrating tests (Application, Console and Cronjob)
This commit is contained in:
@ -17,7 +17,10 @@ public function test_create_rules(): void
|
||||
]));
|
||||
|
||||
$this->assertSame([
|
||||
'webhook_url' => 'required|url',
|
||||
'webhook_url' => [
|
||||
'required',
|
||||
'url',
|
||||
],
|
||||
], $provider->createRules([]));
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,10 @@ public function test_create_rules(): void
|
||||
]));
|
||||
|
||||
$this->assertSame([
|
||||
'email' => 'required|email',
|
||||
'email' => [
|
||||
'required',
|
||||
'email',
|
||||
],
|
||||
], $provider->createRules([]));
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,10 @@ public function test_create_rules(): void
|
||||
]));
|
||||
|
||||
$this->assertSame([
|
||||
'webhook_url' => 'required|url',
|
||||
'webhook_url' => [
|
||||
'required',
|
||||
'url',
|
||||
],
|
||||
], $provider->createRules([]));
|
||||
}
|
||||
|
||||
|
@ -17,8 +17,12 @@ public function test_create_rules(): void
|
||||
]));
|
||||
|
||||
$this->assertSame([
|
||||
'bot_token' => 'required|string',
|
||||
'chat_id' => 'required',
|
||||
'bot_token' => [
|
||||
'required',
|
||||
],
|
||||
'chat_id' => [
|
||||
'required',
|
||||
],
|
||||
], $provider->createRules([]));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user