Skip to content

Commit 11b5ad8

Browse files
committed
Make the intent clearer with the description and the name
Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
1 parent 5f89fbc commit 11b5ad8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Integration/Controller/AbstractControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ protected function getDecodedJsonResponseContent(): array
103103
}
104104

105105
/**
106-
* Returns Int as response content.
106+
* Returns the response content as int.
107107
*
108108
* @return int
109109
*/
110-
protected function getIntResponseContent(): int
110+
protected function getResponseContentAsInt(): int
111111
{
112112
return json_decode($this->client->getResponse()->getContent(), true);
113113
}

tests/Integration/Controller/ListControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public function getListCountWithCurrentSessionKeyForExistingListWithSubscribersR
390390
$this->applyDatabaseChanges();
391391

392392
$this->authenticatedJsonRequest('get', '/api/v2/lists/2/count');
393-
$response = $this->getIntResponseContent();
393+
$response = $this->getResponseContentAsInt();
394394

395395
static::assertSame(1, $response);
396396
}
@@ -406,7 +406,7 @@ public function getListCountWithCurrentSessionKeyForExistingListWithNoSubscriber
406406
$this->applyDatabaseChanges();
407407

408408
$this->authenticatedJsonRequest('get', '/api/v2/lists/3/count');
409-
$response = $this->getIntResponseContent();
409+
$response = $this->getResponseContentAsInt();
410410

411411
static::assertSame(0, $response);
412412
}

0 commit comments

Comments
 (0)