mirror of
https://github.com/flarum/core.git
synced 2025-08-09 18:07:02 +02:00
* chore: phpunit 10 * chore: config * Apply fixes from StyleCI * chore: phpunit 11 (php 8.2 minimum requirement) * feat: laravel 11 * Apply fixes from StyleCI * feat: carbon v3 * fixes
32 lines
777 B
PHP
32 lines
777 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;
|
|
use PHPUnit\Framework\Attributes\Test;
|
|
|
|
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());
|
|
}
|
|
}
|