Add schema for workflow post endpoint

[MAILPOET-4207]
This commit is contained in:
Jan Jakes
2022-04-13 13:19:51 +02:00
committed by Veljko V
parent 29df2dddb6
commit adf6dd3ce9
2 changed files with 17 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ class WorkflowsPostTest extends AutomationTest {
public function testGuestNotAllowed(): void {
wp_set_current_user(0);
$data = $this->post(self::ENDPOINT_PATH);
$data = $this->post(self::ENDPOINT_PATH, ['json' => ['name' => 'Testing workflow', 'steps' => []]]);
$this->assertSame([
'code' => 'rest_forbidden',