update: test suite

This commit is contained in:
HDVinnie
2023-07-11 16:48:07 -04:00
parent 89d776b1bb
commit 8daf39c331
288 changed files with 5252 additions and 3220 deletions
@@ -1,12 +1,23 @@
<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D Community Edition
*
* @author HDVinnie <hdinnovations@protonmail.com>
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
*/
use App\Http\Requests\StorePollVoteRequest;
beforeEach(function (): void {
$this->subject = new \App\Http\Requests\StorePollVoteRequest();
$this->subject = new StorePollVoteRequest();
});
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);
@@ -30,13 +41,9 @@ test('rules', function (): void {
});
test('messages', 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->messages();
$this->assertEquals([
'options.required' => 'You must select an answer',
], $actual);
});
// test cases...