From af56202b189ef092163f25b95e70ee5b47043631 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:17:25 +0000 Subject: [PATCH 1/3] Bump telegram-bot/api from 2.3.26 to 2.5.0 Bumps [telegram-bot/api](https://github.com/TelegramBot/Api) from 2.3.26 to 2.5.0. - [Release notes](https://github.com/TelegramBot/Api/releases) - [Changelog](https://github.com/TelegramBot/Api/blob/master/CHANGELOG.md) - [Commits](https://github.com/TelegramBot/Api/compare/v2.3.26...v2.5.0) --- updated-dependencies: - dependency-name: telegram-bot/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- composer.lock | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 245ea3d..8fe626a 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "symfony/dom-crawler": "^6.3", "symfony/http-client": "^6.3", "symfony/yaml": "^6.3", - "telegram-bot/api": "v2.3.26", + "telegram-bot/api": "v2.5.0", "verifiedjoseph/ntfy-php-library": "^4" }, "autoload": { diff --git a/composer.lock b/composer.lock index 23342e9..ccb5ac4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "7ae90ffd7e94847c639e6cdbe21565f7", + "content-hash": "b83e0a59a6f825f785a96525fe4690aa", "packages": [ { "name": "bref/bref", @@ -2152,31 +2152,32 @@ }, { "name": "telegram-bot/api", - "version": "v2.3.26", + "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/TelegramBot/Api.git", - "reference": "58897c23420a678ab2debef7a73834b54c14e796" + "reference": "eaae3526223db49a1bad76a2dfa501dc287979cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/TelegramBot/Api/zipball/58897c23420a678ab2debef7a73834b54c14e796", - "reference": "58897c23420a678ab2debef7a73834b54c14e796", + "url": "https://api.github.com/repos/TelegramBot/Api/zipball/eaae3526223db49a1bad76a2dfa501dc287979cf", + "reference": "eaae3526223db49a1bad76a2dfa501dc287979cf", "shasum": "" }, "require": { "ext-curl": "*", + "ext-json": "*", "php": ">=5.5.0" }, "require-dev": { - "codeception/codeception": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "2.*" + "friendsofphp/php-cs-fixer": "^3.16", + "symfony/phpunit-bridge": "*", + "vimeo/psalm": "^5.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.5-dev" } }, "autoload": { @@ -2206,9 +2207,9 @@ ], "support": { "issues": "https://github.com/TelegramBot/Api/issues", - "source": "https://github.com/TelegramBot/Api/tree/v2.3.26" + "source": "https://github.com/TelegramBot/Api/tree/v2.5.0" }, - "time": "2023-04-21T18:10:37+00:00" + "time": "2023-08-09T13:53:12+00:00" }, { "name": "verifiedjoseph/ntfy-php-library", From b0293962eeebf2f2121eb2c052b912eab44c7130 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sat, 2 Mar 2024 09:54:59 +0100 Subject: [PATCH 2/3] Fix test --- tests/Notifier/TelegramNotifierTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Notifier/TelegramNotifierTest.php b/tests/Notifier/TelegramNotifierTest.php index b5d6eaa..58fc7dd 100644 --- a/tests/Notifier/TelegramNotifierTest.php +++ b/tests/Notifier/TelegramNotifierTest.php @@ -12,7 +12,7 @@ class TelegramNotifierTest extends TestCase { public function testNotify(): void { - $mockBotApi = $this->createMock(BotApi::class); + $mockBotApi = $this->getMockBuilder(BotApi::class)->setConstructorArgs(['fake-api-key'])->getMock(); $mockBotApi ->expects($this->once()) ->method('sendMessage') From 5d7c68d21dc8796916023a60bbcf8c47b4e7b589 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sat, 2 Mar 2024 09:55:50 +0100 Subject: [PATCH 3/3] Rename --- tests/Notifier/TelegramNotifierTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Notifier/TelegramNotifierTest.php b/tests/Notifier/TelegramNotifierTest.php index 58fc7dd..73cbfcd 100644 --- a/tests/Notifier/TelegramNotifierTest.php +++ b/tests/Notifier/TelegramNotifierTest.php @@ -12,7 +12,7 @@ class TelegramNotifierTest extends TestCase { public function testNotify(): void { - $mockBotApi = $this->getMockBuilder(BotApi::class)->setConstructorArgs(['fake-api-key'])->getMock(); + $mockBotApi = $this->getMockBuilder(BotApi::class)->setConstructorArgs(['fake-token'])->getMock(); $mockBotApi ->expects($this->once()) ->method('sendMessage')