mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-28 06:49:39 -06:00
37 lines
907 B
PHP
37 lines
907 B
PHP
<?php
|
|
|
|
beforeEach(function (): void {
|
|
$this->subject = new \App\Http\Requests\StorePlaylistRequest();
|
|
});
|
|
|
|
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([
|
|
'name' => [
|
|
'required',
|
|
'max:255',
|
|
],
|
|
'description' => [
|
|
'required',
|
|
'max:65535',
|
|
],
|
|
'is_private' => [
|
|
'required',
|
|
'boolean',
|
|
],
|
|
], $actual);
|
|
});
|
|
|
|
// test cases...
|