Skip to content

Commit

Permalink
renamed createAutoplacementTags function to `createTagsByAutoplacem…
Browse files Browse the repository at this point in the history
…ent`
  • Loading branch information
pavelvais committed Sep 5, 2024
1 parent 1099312 commit 11b0dad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Endpoint/EnvelopeDocumentsEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function tags(string $id, array $query = []): ListResource
/**
* @return ListResource<EnvelopeTag>
*/
public function createAutoplacementTags(string $document): ListResource
public function createTagsByAutoplacement(string $document): ListResource
{
return $this->createListResource(
$this->postRequest('/{document}/tags/by-autoplacement', ['document' => $document]),
Expand Down
4 changes: 2 additions & 2 deletions tests/Endpoint/EnvelopeDocumentsEndpointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public function testTags(): void
self::assertLastRequest('GET', '/api/envelopes/bar/documents/foo/tags?foo=bar');
}

public function testAutoplacementTags(): void
public function testTagsByAutoplacement(): void
{
self::endpoint()->createAutoplacementTags('foo');
self::endpoint()->createTagsByAutoplacement('foo');
self::assertLastRequest('POST', '/api/envelopes/bar/documents/foo/tags/by-autoplacement');
}

Expand Down

0 comments on commit 11b0dad

Please sign in to comment.