Fix test create template
This commit is contained in:
parent
88812776db
commit
a192ca35f7
|
@ -32,7 +32,7 @@
|
|||
<server name="MAIL_FROM_NAME" value="NotionForms"/>
|
||||
<server name="QUEUE_CONNECTION" value="sync"/>
|
||||
<server name="SESSION_DRIVER" value="array"/>
|
||||
<server name="TELESCOPE_ENABLED" value="false"/>
|
||||
<server name="TEMPLATE_EDITOR_EMAILS" value="admin@opnform.com"/>
|
||||
<server name="JWT_SECRET" value="9K6whOetAFaokQgSIdbMQZuJuDV5uS2Y"/>
|
||||
</php>
|
||||
</phpunit>
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
<?php
|
||||
|
||||
it('can create template', function () {
|
||||
$user = $this->actingAsUser();
|
||||
$user = $this->createUser([
|
||||
'email' => 'admin@opnform.com'
|
||||
]);
|
||||
$this->actingAsUser($user);
|
||||
|
||||
// Create Form
|
||||
$workspace = $this->createUserWorkspace($user);
|
||||
|
|
|
@ -135,9 +135,9 @@ trait TestHelpers
|
|||
return $form;
|
||||
}
|
||||
|
||||
public function createUser()
|
||||
public function createUser(array $data = [])
|
||||
{
|
||||
return \App\Models\User::factory()->create();
|
||||
return \App\Models\User::factory()->create($data);
|
||||
}
|
||||
|
||||
public function createProUser()
|
||||
|
|
Loading…
Reference in New Issue