Fix test create template
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
<?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);
|
||||
$form = $this->makeForm($user, $workspace);
|
||||
|
||||
|
||||
// Create Template
|
||||
$templateData = [
|
||||
'name' => 'Demo Template',
|
||||
@@ -22,4 +25,4 @@ it('can create template', function () {
|
||||
'type' => 'success',
|
||||
'message' => 'Template created.'
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user