mirror of
https://github.com/flarum/core.git
synced 2025-07-16 22:31:18 +02:00
chore: remove test code
This commit is contained in:
@@ -49,6 +49,7 @@ class CheckForUpdatesHandler
|
|||||||
* The results from both commands are properly processed and merged to have new key values `latest-minor` and `latest-major`.
|
* The results from both commands are properly processed and merged to have new key values `latest-minor` and `latest-major`.
|
||||||
*
|
*
|
||||||
* @throws \Flarum\User\Exception\PermissionDeniedException|ComposerCommandFailedException
|
* @throws \Flarum\User\Exception\PermissionDeniedException|ComposerCommandFailedException
|
||||||
|
* @todo integration test
|
||||||
*/
|
*/
|
||||||
public function handle(CheckForUpdates $command)
|
public function handle(CheckForUpdates $command)
|
||||||
{
|
{
|
||||||
|
@@ -68,28 +68,6 @@ class MajorUpdateHandler
|
|||||||
{
|
{
|
||||||
$command->actor->assertAdmin();
|
$command->actor->assertAdmin();
|
||||||
|
|
||||||
// @todo remove testing code
|
|
||||||
throw new MajorUpdateFailedException(
|
|
||||||
'*',
|
|
||||||
'Loading composer repositories with package information
|
|
||||||
Updating dependencies
|
|
||||||
Your requirements could not be resolved to an installable set of packages.
|
|
||||||
|
|
||||||
Problem 1
|
|
||||||
- Root composer.json requires flarum/tags * -> satisfiable by flarum/tags[1.0.0].
|
|
||||||
- flarum/tags 1.0.0 requires flarum/core >=0.1.0-beta.15 <0.1.0-beta.16 -> found flarum/core[v0.1.0-beta.15] but it conflicts with your root composer.json require (^1.1.1).
|
|
||||||
Problem 2
|
|
||||||
- Root composer.json requires sycho/flarum-profile-cover * -> satisfiable by sycho/flarum-profile-cover[1.0.0].
|
|
||||||
- sycho/flarum-profile-cover 1.0.0 requires flarum/core >=0.1.0-beta.15 <=0.1.0-beta.16 -> found flarum/core[v0.1.0-beta.15, v0.1.0-beta.16] but it conflicts with your root composer.json require (^1.1.1).
|
|
||||||
Problem 3
|
|
||||||
- Root composer.json requires askvortsov/flarum-auto-moderator * -> satisfiable by askvortsov/flarum-auto-moderator[1.0.0].
|
|
||||||
- askvortsov/flarum-auto-moderator 1.0.0 requires flarum/core 0.1.0-beta.15 -> found flarum/core[v0.1.0-beta.15] but it conflicts with your root composer.json require (^1.1.1).
|
|
||||||
|
|
||||||
<warning>Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.</warning>
|
|
||||||
',
|
|
||||||
'2.0',
|
|
||||||
);
|
|
||||||
|
|
||||||
$majorVersion = $this->lastUpdateCheck->getNewMajorVersion();
|
$majorVersion = $this->lastUpdateCheck->getNewMajorVersion();
|
||||||
|
|
||||||
if (! $majorVersion) {
|
if (! $majorVersion) {
|
||||||
|
Reference in New Issue
Block a user