Skip to content

Commit 1a4c807

Browse files
committed
better name
1 parent 96ac7f1 commit 1a4c807

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/Unit/ListenersTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use PHPUnit\Framework\Attributes\Test;
77
use Statamic\Events\SubmissionCreated;
88
use Statamic\Events\UserRegistered;
9-
use Statamic\Facades\Form as FormAPI;
9+
use Statamic\Facades\Form as FormFacade;
1010
use Statamic\Forms\Form;
1111
use Statamic\Forms\Submission;
1212
use StatamicRadPack\Mailchimp\Listeners\AddFromSubmission;
@@ -23,17 +23,16 @@ protected function setUp(): void
2323
{
2424
parent::setUp();
2525

26-
FormAPI::all()->each->delete();
26+
FormFacade::all()->each->delete();
2727

28-
$this->form = FormAPI::make('contact_us')
28+
$this->form = FormFacade::make('contact_us')
2929
->title('Contact Us')
3030
->honeypot('winnie');
3131

3232
$this->form->save();
3333

3434
$this->submission = $this->form->makeSubmission();
35-
$this->submission
36-
->data(['foo' => 'bar']);
35+
$this->submission->data(['foo' => 'bar']);
3736
}
3837

3938
#[Test]

0 commit comments

Comments
 (0)