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:
@@ -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,
|
||||
])
|
||||
);
|
||||
|
Reference in New Issue
Block a user