1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 18:07:02 +02:00
Files
php-flarum/extensions/package-manager/tests/integration/api/GlobalUpdateTest.php
Sami Mazouz 6b336c5ea8 chore: update dependencies (#4012)
* 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
2024-08-06 16:50:09 +01:00

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());
}
}