1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 19:04:29 +02:00

feat(em): port extension manager from 1.0 (#3959)

* feat(em): port extension manager from 1.0

* Apply fixes from StyleCI

* chore: phpstan

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Sami Mazouz
2024-01-22 18:58:08 +01:00
committed by GitHub
parent 8f29b7af82
commit 3fbe05fd18
114 changed files with 2003 additions and 636 deletions

View File

@@ -7,12 +7,12 @@
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\PackageManager\Tests\integration\api;
namespace Flarum\ExtensionManager\Tests\integration\api;
use Flarum\PackageManager\Tests\integration\ChangeComposerConfig;
use Flarum\PackageManager\Tests\integration\DummyExtensions;
use Flarum\PackageManager\Tests\integration\RefreshComposerSetup;
use Flarum\PackageManager\Tests\integration\TestCase;
use Flarum\ExtensionManager\Tests\integration\ChangeComposerConfig;
use Flarum\ExtensionManager\Tests\integration\DummyExtensions;
use Flarum\ExtensionManager\Tests\integration\RefreshComposerSetup;
use Flarum\ExtensionManager\Tests\integration\TestCase;
class MajorUpdateTest extends TestCase
{
@@ -36,7 +36,7 @@ class MajorUpdateTest extends TestCase
]);
$response = $this->send(
$this->request('POST', '/api/package-manager/major-update', [
$this->request('POST', '/api/extension-manager/major-update', [
'authenticatedAs' => 1,
])
);
@@ -61,7 +61,7 @@ class MajorUpdateTest extends TestCase
]);
$lastUpdateCheck = $this->send(
$this->request('POST', '/api/package-manager/check-for-updates', [
$this->request('POST', '/api/extension-manager/check-for-updates', [
'authenticatedAs' => 1,
])
);
@@ -69,7 +69,7 @@ class MajorUpdateTest extends TestCase
$this->forgetComposerApp();
$response = $this->send(
$this->request('POST', '/api/package-manager/major-update', [
$this->request('POST', '/api/extension-manager/major-update', [
'authenticatedAs' => 1,
])
);
@@ -107,13 +107,13 @@ class MajorUpdateTest extends TestCase
]);
$this->send(
$this->request('POST', '/api/package-manager/check-for-updates', [
$this->request('POST', '/api/extension-manager/check-for-updates', [
'authenticatedAs' => 1,
])
);
$response = $this->send(
$this->request('POST', '/api/package-manager/major-update', [
$this->request('POST', '/api/extension-manager/major-update', [
'authenticatedAs' => 1,
])
);