Skip to content

Commit 338f7e7

Browse files
committed
Remove tests for removed methods
1 parent 57fadc6 commit 338f7e7

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

tests/Client/PoggitAPIClientTest.php

-15
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,6 @@ public function testGetReleaseFileThrowsExceptionWhenUnknown(): void
104104
$this->client->downloadVersion("UnknownPluginName", "1.0.0");
105105
}
106106

107-
public function testGetResourceReturnsSplFileObject(): void
108-
{
109-
// 214555 is the resource id of version 1.5.1 of the plugin "_NewAlias"
110-
// taken from the artifact_url (https://poggit.pmmp.io/r/214555)
111-
$file = $this->client->downloadResource(214555);
112-
$this->assertNotNull($file);
113-
$this->assertInstanceOf(\SplFileObject::class, $file);
114-
}
115-
116-
public function testGetResourceThrowsExceptionWhenUnknown(): void
117-
{
118-
$this->expectException(ApiException::class);
119-
$this->client->downloadResource(999999999);
120-
}
121-
122107
public function testGetMd5HashReturnsCorrectHash(): void
123108
{
124109
// 214555 is the resource id of version 1.5.1 of the plugin "_NewAlias"

tests/Client/ReleaseTest.php

-5
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ public function testGetResourceIdReturnsCorrectId(): void
7171
$this->assertEquals(214555, $this->release->getResourceId());
7272
}
7373

74-
public function testGetFileReturnsSplFileObject(): void
75-
{
76-
$this->assertInstanceOf(\SplFileObject::class, $this->release->getFile());
77-
}
78-
7974
public function testGetMd5HashReturnsCorrectHash(): void
8075
{
8176
$this->assertEquals("bf0191ae45bb52700961d214bbf1d6ab", $this->release->getMD5Hash());

0 commit comments

Comments
 (0)