mirror of
https://github.com/flarum/core.git
synced 2025-08-12 11:24:30 +02:00
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
This commit is contained in:
@@ -13,6 +13,7 @@ use Flarum\ExtensionManager\Tests\integration\ChangeComposerConfig;
|
||||
use Flarum\ExtensionManager\Tests\integration\DummyExtensions;
|
||||
use Flarum\ExtensionManager\Tests\integration\RefreshComposerSetup;
|
||||
use Flarum\ExtensionManager\Tests\integration\TestCase;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
|
||||
class MajorUpdateTest extends TestCase
|
||||
{
|
||||
@@ -20,9 +21,7 @@ class MajorUpdateTest extends TestCase
|
||||
use ChangeComposerConfig;
|
||||
use DummyExtensions;
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function cannot_update_when_no_update_check_ran()
|
||||
{
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-incompatible-extension', '>=0.1.0-beta.15 <=0.1.0-beta.16');
|
||||
@@ -45,9 +44,7 @@ class MajorUpdateTest extends TestCase
|
||||
$this->assertEquals('no_new_major_version', $this->errorDetails($response)['code']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function can_update_when_major_update_available()
|
||||
{
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-compatible-extension', '^0.1.0-beta.15 | ^1.0.0');
|
||||
@@ -87,9 +84,7 @@ class MajorUpdateTest extends TestCase
|
||||
$this->assertPackageVersion('flarum/dummy-compatible-extension', '*');
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
#[Test]
|
||||
public function cannot_update_with_incompatible_extensions()
|
||||
{
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-incompatible-extension-a', '>=0.1.0-beta.16 <0.1.0-beta.17');
|
||||
|
Reference in New Issue
Block a user