mirror of
https://github.com/flarum/core.git
synced 2025-08-08 17:36:38 +02:00
feat: Queue package manager commands (#3418)
* feat: Queue package manager commands * adjust tests * fix: force run whynot command synchronously * chore: maximize command output box's height * chore: more user instructions on background queue * feat: track command peak memory usage * feat: exit of CLI php version doesn't match web php version * chore: install deps * chore: format and typing workflow fix Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
This commit is contained in:
@@ -37,8 +37,6 @@ class SetupComposer
|
||||
if (file_exists($composerLock)) {
|
||||
unlink($composerLock);
|
||||
}
|
||||
|
||||
echo 'composer.json created with testing packages directory.';
|
||||
}
|
||||
|
||||
private function getConfig(): array
|
||||
|
@@ -27,6 +27,6 @@ class GlobalUpdateTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals(201, $response->getStatusCode());
|
||||
}
|
||||
}
|
||||
|
@@ -81,7 +81,7 @@ class MajorUpdateTest extends TestCase
|
||||
}
|
||||
)[0]['latest-major'];
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals(201, $response->getStatusCode());
|
||||
$this->assertPackageVersion('flarum/core', str_replace('v', '^', $newMinorCoreVersion));
|
||||
$this->assertPackageVersion('flarum/tags', '*');
|
||||
$this->assertPackageVersion('flarum/dummy-compatible-extension', '*');
|
||||
|
@@ -23,7 +23,7 @@ class MinorUpdateTest extends TestCase
|
||||
use DummyExtensions;
|
||||
|
||||
/**
|
||||
* @test--
|
||||
* @test
|
||||
*/
|
||||
public function can_update_to_next_minor_version()
|
||||
{
|
||||
@@ -48,7 +48,7 @@ class MinorUpdateTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals(201, $response->getStatusCode());
|
||||
$this->assertPackageVersion('flarum/tags', '*');
|
||||
$this->assertPackageVersion('flarum/dummy-compatible-extension', '*');
|
||||
}
|
||||
@@ -85,7 +85,7 @@ class MinorUpdateTest extends TestCase
|
||||
/** @var LastUpdateRun $lastUpdateRun */
|
||||
$lastUpdateRun = $this->app()->getContainer()->make(LastUpdateRun::class);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals(201, $response->getStatusCode());
|
||||
$this->assertPackageVersion('flarum/tags', '*');
|
||||
$this->assertPackageVersion('flarum/dummy-extension', '*');
|
||||
$this->assertEquals([
|
||||
|
@@ -35,7 +35,7 @@ class RemoveExtensionTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals(201, $response->getStatusCode());
|
||||
$this->assertExtensionNotExists('flarum-tags');
|
||||
}
|
||||
|
||||
|
@@ -35,7 +35,7 @@ class UpdateExtensionTest extends TestCase
|
||||
])
|
||||
);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertEquals(201, $response->getStatusCode());
|
||||
$this->assertExtensionExists('flarum-tags');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user