public function testGetAppLogoURL() { $app_id = $this->appids[0]; $this->assertEquals('http://cdn.steampowered.com/v/gfx/apps/' . $app_id . '/header.jpg', $this->store_tools->getAppLogoURL($app_id)); $app_id = $this->appids[1]; $this->assertEquals('http://cdn.steampowered.com/v/gfx/apps/' . $app_id . '/header.jpg', $this->store_tools->getAppLogoURL($app_id)); }
public function getLogo($size = 'small') { if (!empty($this->steam_app_id)) { $locomotive = new Store(); return $locomotive->getAppLogoURL($this->steam_app_id, $size); } else { return ''; // Todo - logo support for non-steam apps } }