setComposerConfig([ 'require' => [ 'flarum/core' => '^1.0.0', 'flarum/tags' => '1.0.0', ] ]); $response = $this->send( $this->request('POST', '/api/package-manager/check-for-updates', [ 'authenticatedAs' => 1, ]) ); $this->assertEquals(200, $response->getStatusCode()); $this->assertEquals(['flarum/tags'], Arr::pluck(json_decode((string) $response->getBody(), true)['updates']['installed'], 'name')); } }