mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
795a500adb
* 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>
33 lines
747 B
PHP
33 lines
747 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\PackageManager\Tests\integration\api;
|
|
|
|
use Flarum\PackageManager\Tests\integration\RefreshComposerSetup;
|
|
use Flarum\PackageManager\Tests\integration\TestCase;
|
|
|
|
class GlobalUpdateTest extends TestCase
|
|
{
|
|
use RefreshComposerSetup;
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function can_global_update()
|
|
{
|
|
$response = $this->send(
|
|
$this->request('POST', '/api/package-manager/global-update', [
|
|
'authenticatedAs' => 1,
|
|
])
|
|
);
|
|
|
|
$this->assertEquals(201, $response->getStatusCode());
|
|
}
|
|
}
|