2021-11-25 03:16:25 +08:00
|
|
|
<?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,
|
|
|
|
])
|
|
|
|
);
|
|
|
|
|
2022-07-24 21:02:13 +08:00
|
|
|
$this->assertEquals(201, $response->getStatusCode());
|
2021-11-25 03:16:25 +08:00
|
|
|
}
|
|
|
|
}
|