Generate unit tests for form requests

This commit is contained in:
Shift
2023-07-11 18:27:19 +00:00
parent 39e8a86b88
commit c76a36dd29
66 changed files with 2927 additions and 0 deletions
@@ -0,0 +1,31 @@
<?php
beforeEach(function (): void {
$this->subject = new \App\Http\Requests\StoreRequestFillRequest();
});
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([
'torrent_id' => [
'required',
],
'filled_anon' => [
'required',
'boolean',
],
], $actual);
});
// test cases...