Skip to content

Commit

Permalink
Remove unused md5 fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyker committed Mar 29, 2023
1 parent 8c2fb83 commit f90484e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/Resources/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class Build
{
public $id;
public $minecraft;
public $minecraft_md5;
public $java;
public $memory;
public $forge;
Expand Down
3 changes: 0 additions & 3 deletions src/Resources/Modpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ class Modpack
public $display_name;
public $url;
public $icon;
public $icon_md5;
public $logo;
public $logo_md5;
public $background;
public $background_md5;
public $recommended;
public $latest;
public $builds = [];
Expand Down
4 changes: 1 addition & 3 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function testGetModpackUnauthorized()

public function testGetModpack()
{
$body = '{"name":"hexxit","display_name":"Hexxit","url":null,"icon":null,"icon_md5":"fb51fd408d5d3bc7eba8d9a820ab555c","logo":null,"logo_md5":"1426f5b19df42eab2cabbaa34823c8c9","background":null,"background_md5":"a99b0c0eb00ac657d29eb9e1f9086033","recommended":"1.0.10","latest":"1.0.10","builds":["1.0.0","1.0.1","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.0.10","2.0.0","2.0.1","2.0.1b","2.0.1c"]}';
$body = '{"name":"hexxit","display_name":"Hexxit","url":null,"icon":null,"logo":null,"background":null,"recommended":"1.0.10","latest":"1.0.10","builds":["1.0.0","1.0.1","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.0.10","2.0.0","2.0.1","2.0.1b","2.0.1c"]}';

// Create a mock and queue two responses.
$mock = new MockHandler([
Expand All @@ -192,9 +192,7 @@ public function testGetModpack()
$this->assertObjectHasAttribute('display_name', $modpack);
$this->assertObjectHasAttribute('url', $modpack);
$this->assertObjectHasAttribute('icon', $modpack);
$this->assertObjectHasAttribute('icon_md5', $modpack);
$this->assertObjectHasAttribute('logo', $modpack);
$this->assertObjectHasAttribute('logo_md5', $modpack);
$this->assertObjectHasAttribute('background', $modpack);
$this->assertObjectHasAttribute('recommended', $modpack);
$this->assertObjectHasAttribute('latest', $modpack);
Expand Down

0 comments on commit f90484e

Please sign in to comment.