mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
chore(deps): bump glob-parent from 3.1.0 to 5.1.2 in /extensions/emoji/js (#3345)
* chore(deps): bump glob-parent in /extensions/emoji/js Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 3.1.0 to 5.1.2. - [Release notes](https://github.com/gulpjs/glob-parent/releases) - [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md) - [Commits](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v5.1.2) --- updated-dependencies: - dependency-name: glob-parent dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Apply fixes from StyleCI [ci skip] [skip ci] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<?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;
|
||||
|
||||
trait ChangeComposerConfig
|
||||
|
@@ -9,19 +9,17 @@
|
||||
|
||||
namespace Flarum\PackageManager\Tests\integration;
|
||||
|
||||
use Flarum\Foundation\Paths;
|
||||
|
||||
trait DummyExtensions
|
||||
{
|
||||
protected function makeDummyExtensionCompatibleWith(string $name, string $coreVersions): void
|
||||
{
|
||||
$dirName = $this->tmpDir() . "/packages/" . str_replace('/', '-', $name);
|
||||
$dirName = $this->tmpDir().'/packages/'.str_replace('/', '-', $name);
|
||||
|
||||
if (! file_exists($dirName)) {
|
||||
mkdir($dirName);
|
||||
}
|
||||
|
||||
file_put_contents($dirName."/composer.json", json_encode([
|
||||
file_put_contents($dirName.'/composer.json', json_encode([
|
||||
'name' => $name,
|
||||
'version' => '1.0.0',
|
||||
'require' => [
|
||||
|
@@ -37,8 +37,8 @@ trait RefreshComposerSetup
|
||||
$it = new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS);
|
||||
$files = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
|
||||
|
||||
foreach($files as $file) {
|
||||
if ($file->isDir()){
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
rmdir($file->getRealPath());
|
||||
} else {
|
||||
unlink($file->getRealPath());
|
||||
|
@@ -16,7 +16,8 @@ use Illuminate\Support\Arr;
|
||||
|
||||
class CheckForUpdatesTest extends TestCase
|
||||
{
|
||||
use RefreshComposerSetup, ChangeComposerConfig;
|
||||
use RefreshComposerSetup;
|
||||
use ChangeComposerConfig;
|
||||
|
||||
/**
|
||||
* @test
|
||||
|
@@ -16,14 +16,16 @@ use Flarum\PackageManager\Tests\integration\TestCase;
|
||||
|
||||
class MajorUpdateTest extends TestCase
|
||||
{
|
||||
use RefreshComposerSetup, ChangeComposerConfig, DummyExtensions;
|
||||
use RefreshComposerSetup;
|
||||
use ChangeComposerConfig;
|
||||
use DummyExtensions;
|
||||
|
||||
/**
|
||||
* @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");
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-incompatible-extension', '>=0.1.0-beta.15 <=0.1.0-beta.16');
|
||||
$this->setComposerConfig([
|
||||
'require' => [
|
||||
'flarum/core' => '^0.1.0-beta.15',
|
||||
@@ -48,7 +50,7 @@ class MajorUpdateTest extends TestCase
|
||||
*/
|
||||
public function can_update_when_major_update_available()
|
||||
{
|
||||
$this->makeDummyExtensionCompatibleWith("flarum/dummy-compatible-extension", "^0.1.0-beta.15 | ^1.0.0");
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-compatible-extension', '^0.1.0-beta.15 | ^1.0.0');
|
||||
$this->setComposerConfig([
|
||||
'require' => [
|
||||
'flarum/core' => '^0.1.0-beta.15',
|
||||
@@ -80,9 +82,9 @@ class MajorUpdateTest extends TestCase
|
||||
)[0]['latest-major'];
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertPackageVersion("flarum/core", str_replace('v', '^', $newMinorCoreVersion));
|
||||
$this->assertPackageVersion("flarum/tags", "*");
|
||||
$this->assertPackageVersion("flarum/dummy-compatible-extension", "*");
|
||||
$this->assertPackageVersion('flarum/core', str_replace('v', '^', $newMinorCoreVersion));
|
||||
$this->assertPackageVersion('flarum/tags', '*');
|
||||
$this->assertPackageVersion('flarum/dummy-compatible-extension', '*');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -90,9 +92,9 @@ class MajorUpdateTest extends TestCase
|
||||
*/
|
||||
public function cannot_update_with_incompatible_extensions()
|
||||
{
|
||||
$this->makeDummyExtensionCompatibleWith("flarum/dummy-incompatible-extension-a", ">=0.1.0-beta.16 <0.1.0-beta.17");
|
||||
$this->makeDummyExtensionCompatibleWith("flarum/dummy-incompatible-extension-b", ">=0.1.0-beta.16 <=0.1.0-beta.17");
|
||||
$this->makeDummyExtensionCompatibleWith("flarum/dummy-incompatible-extension-c", "0.1.0-beta.16");
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-incompatible-extension-a', '>=0.1.0-beta.16 <0.1.0-beta.17');
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-incompatible-extension-b', '>=0.1.0-beta.16 <=0.1.0-beta.17');
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-incompatible-extension-c', '0.1.0-beta.16');
|
||||
$this->setComposerConfig([
|
||||
'require' => [
|
||||
'flarum/core' => '^0.1.0-beta.16',
|
||||
|
@@ -18,14 +18,16 @@ use Flarum\PackageManager\Tests\integration\TestCase;
|
||||
|
||||
class MinorUpdateTest extends TestCase
|
||||
{
|
||||
use RefreshComposerSetup, ChangeComposerConfig, DummyExtensions;
|
||||
use RefreshComposerSetup;
|
||||
use ChangeComposerConfig;
|
||||
use DummyExtensions;
|
||||
|
||||
/**
|
||||
* @test--
|
||||
*/
|
||||
public function can_update_to_next_minor_version()
|
||||
{
|
||||
$this->makeDummyExtensionCompatibleWith("flarum/dummy-compatible-extension", "^1.0.0");
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-compatible-extension', '^1.0.0');
|
||||
$this->setComposerConfig([
|
||||
'require' => [
|
||||
// The only reason we don't set this to `^1.0.0` and let it update to latest minor,
|
||||
@@ -56,7 +58,7 @@ class MinorUpdateTest extends TestCase
|
||||
*/
|
||||
public function can_update_with_latest_ext_incompatible_with_latest_core()
|
||||
{
|
||||
$this->makeDummyExtensionCompatibleWith("flarum/dummy-extension", "1.0.0");
|
||||
$this->makeDummyExtensionCompatibleWith('flarum/dummy-extension', '1.0.0');
|
||||
$this->setComposerConfig([
|
||||
'require' => [
|
||||
'flarum/core' => '>=1.0.0 <=1.1.0',
|
||||
@@ -84,8 +86,8 @@ class MinorUpdateTest extends TestCase
|
||||
$lastUpdateRun = $this->app()->getContainer()->make(LastUpdateRun::class);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertPackageVersion("flarum/tags", "*");
|
||||
$this->assertPackageVersion("flarum/dummy-extension", "*");
|
||||
$this->assertPackageVersion('flarum/tags', '*');
|
||||
$this->assertPackageVersion('flarum/dummy-extension', '*');
|
||||
$this->assertEquals([
|
||||
'flarum/core',
|
||||
'flarum/lang-english',
|
||||
|
@@ -7,8 +7,8 @@
|
||||
* LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Flarum\Testing\integration\Setup\SetupScript;
|
||||
use Flarum\PackageManager\Tests\integration\SetupComposer;
|
||||
use Flarum\Testing\integration\Setup\SetupScript;
|
||||
|
||||
require __DIR__.'/../../vendor/autoload.php';
|
||||
|
||||
|
Reference in New Issue
Block a user