public function setUp() { parent::setUp(); $this->config = $this->app['config']['self-update']['repository_types']['github']; $this->releasesAsJson = fopen('tests/Data/releases.json', 'r'); $response = new Response(200, ['Content-Type' => 'application/json'], \GuzzleHttp\Psr7\stream_for($this->releasesAsJson)); $mock = new MockHandler([$response, $response, $response, $response]); $handler = HandlerStack::create($mock); $this->client = new Client(['handler' => $handler]); $this->client->request('GET', self::GITHUB_API_URL . '/repos/' . $this->config['repository_vendor'] . '/' . $this->config['repository_name'] . '/tags'); }
public function setUp() { parent::setUp(); $this->eventName = 'Update succeeded'; $this->versionUpdatedTo = '1.9.0'; }
public function setUp() { parent::setUp(); $this->eventName = 'Update available'; $this->versionAvailable = '1.1.0'; }