mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-03-17 10:53:00 -05:00
38 lines
924 B
PHP
38 lines
924 B
PHP
<?php
|
|
|
|
beforeEach(function (): void {
|
|
$this->subject = new \App\Http\Requests\StoreGiftRequest();
|
|
});
|
|
|
|
test('authorize', function (): void {
|
|
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
|
|
|
|
$actual = $this->subject->authorize();
|
|
|
|
$this->assertTrue($actual);
|
|
});
|
|
|
|
test('rules', function (): void {
|
|
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
|
|
|
|
$actual = $this->subject->rules();
|
|
|
|
$this->assertValidationRules([
|
|
'receiver_username' => [
|
|
'required',
|
|
],
|
|
'cost' => [
|
|
'required',
|
|
'numeric',
|
|
'min:1',
|
|
],
|
|
'comment' => [
|
|
'required',
|
|
'string',
|
|
'max:255',
|
|
],
|
|
], $actual);
|
|
});
|
|
|
|
// test cases...
|