mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 23:36:18 +08:00
3fbe05fd18
* feat(em): port extension manager from 1.0 * Apply fixes from StyleCI * chore: phpstan --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
33 lines
755 B
PHP
33 lines
755 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\ExtensionManager\Tests\integration\api;
|
|
|
|
use Flarum\ExtensionManager\Tests\integration\RefreshComposerSetup;
|
|
use Flarum\ExtensionManager\Tests\integration\TestCase;
|
|
|
|
class GlobalUpdateTest extends TestCase
|
|
{
|
|
use RefreshComposerSetup;
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function can_global_update()
|
|
{
|
|
$response = $this->send(
|
|
$this->request('POST', '/api/extension-manager/global-update', [
|
|
'authenticatedAs' => 1,
|
|
])
|
|
);
|
|
|
|
$this->assertEquals(201, $response->getStatusCode());
|
|
}
|
|
}
|