Skip to content

Commit 65ebd1c

Browse files
authored
Merge pull request #168 from sandervankasteel/feature/AddDeleteSharpFormHelper
Added "deleteSharpForm" helper
2 parents e0d1244 + ee66069 commit 65ebd1c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Utils/Testing/SharpAssertions.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ protected function initSharpAssertions()
8585
});
8686
}
8787

88+
/**
89+
* @param string $entityKey
90+
* @param $instanceId
91+
* @return mixed
92+
*/
93+
protected function deleteSharpForm(string $entityKey, $instanceId)
94+
{
95+
return $this->deleteJson(
96+
route("code16.sharp.api.form.delete", [$entityKey, $instanceId])
97+
);
98+
}
99+
88100
/**
89101
* @param string $entityKey
90102
* @param mixed|null $instanceId

0 commit comments

Comments
 (0)