Skip to content

Commit 67d1d5d

Browse files
committed
tests: fix doc + tests
1 parent a2fd486 commit 67d1d5d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/TestCase/BEditaClientTest.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,10 @@ public function testDeleteRemoveRestore(): void
752752
static::assertEmpty($response);
753753
$response = $this->client->getObjects($type, ['filter' => ['id' => $ids[0]]]);
754754
static::assertNotEmpty($response['data']);
755+
$response = $this->client->deleteObjects($ids, $type);
756+
static::assertEquals(204, $this->client->getStatusCode());
757+
static::assertEquals('No Content', $this->client->getStatusMessage());
758+
static::assertEmpty($response);
755759
$response = $this->client->removeObjects($ids, $type);
756760
static::assertEquals(204, $this->client->getStatusCode());
757761
static::assertEquals('No Content', $this->client->getStatusMessage());
@@ -917,7 +921,7 @@ public function testRemove($input, $expected): void
917921
* Test `removeObjects` on exception.
918922
*
919923
* @return void
920-
* @covers removeObjects()
924+
* @covers ::removeObjects()
921925
*/
922926
public function testRemoveObjects(): void
923927
{
@@ -936,7 +940,7 @@ public function remove($id): ?array
936940
$type = 'documents';
937941
$response = $client->save($type, ['title' => 'this is a test document']);
938942
$docId = $response['data']['id'];
939-
$response = $client->deleteObject($docId, $type);
943+
$client->deleteObject($docId, $type);
940944
$ids = [$docId, 'abc'];
941945
$actual = $client->removeObjects($ids, $type);
942946
static::assertEmpty($actual);

tests/TestCase/BaseClientTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,10 @@ public function testRefreshTokens($input, $expected): void
604604
}
605605

606606
/**
607-
* Test `refreshToken` on Invalid response from server.
607+
* Test `refreshTokens` on Invalid response from server.
608608
*
609609
* @return void
610-
* @covers ::refreshToken()
610+
* @covers ::refreshTokens()
611611
*/
612612
public function testRefreshTokenInvalidResponseFromServer(): void
613613
{

0 commit comments

Comments
 (0)