Refactor FormSubmissionDataFactory to use TestHelpers trait
- Move FormSubmissionDataFactory methods into TestHelpers trait - Update import statements across multiple test files - Remove standalone FormSubmissionDataFactory class - Simplify form submission data generation in tests - Add documentation for new generateFormSubmissionData method
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Testing\Fluent\AssertableJson;
|
||||
use Tests\Helpers\FormSubmissionDataFactory;
|
||||
|
||||
beforeEach(function () {
|
||||
$this->password = '12345';
|
||||
@@ -10,7 +9,7 @@ beforeEach(function () {
|
||||
$this->form = $this->createForm($user, $workspace, [
|
||||
'password' => $this->password,
|
||||
]);
|
||||
$this->formData = FormSubmissionDataFactory::generateSubmissionData($this->form);
|
||||
$this->formData = $this->generateFormSubmissionData($this->form);
|
||||
});
|
||||
|
||||
it('can allow form owner to access and submit form without password', function () {
|
||||
|
||||
Reference in New Issue
Block a user