From 1cdb4f252377a9ee252aefe816f6520ddc5f3533 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 07:19:10 +0000 Subject: [PATCH 1/3] Bump mittwald/api-client from 2.1.44 to 2.1.58 Bumps [mittwald/api-client](https://github.com/mittwald/api-client-php) from 2.1.44 to 2.1.58. - [Release notes](https://github.com/mittwald/api-client-php/releases) - [Commits](https://github.com/mittwald/api-client-php/compare/v2.1.44...v2.1.58) --- updated-dependencies: - dependency-name: mittwald/api-client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index a1da380..9bf3bce 100644 --- a/composer.lock +++ b/composer.lock @@ -740,16 +740,16 @@ }, { "name": "mittwald/api-client", - "version": "v2.1.44", + "version": "v2.1.58", "source": { "type": "git", "url": "https://github.com/mittwald/api-client-php.git", - "reference": "5b80b7bfa7daafac62a99af986ffa4c78fd91551" + "reference": "20a47646c9ae5add517d9852b0ab1c8019814e6d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mittwald/api-client-php/zipball/5b80b7bfa7daafac62a99af986ffa4c78fd91551", - "reference": "5b80b7bfa7daafac62a99af986ffa4c78fd91551", + "url": "https://api.github.com/repos/mittwald/api-client-php/zipball/20a47646c9ae5add517d9852b0ab1c8019814e6d", + "reference": "20a47646c9ae5add517d9852b0ab1c8019814e6d", "shasum": "" }, "require": { @@ -783,9 +783,9 @@ "description": "Client library for the mittwald mStudio v2 API", "support": { "issues": "https://github.com/mittwald/api-client-php/issues", - "source": "https://github.com/mittwald/api-client-php/tree/v2.1.44" + "source": "https://github.com/mittwald/api-client-php/tree/v2.1.58" }, - "time": "2024-08-02T19:10:00+00:00" + "time": "2024-09-05T07:13:15+00:00" }, { "name": "psr/http-client", From 9fe8dd95550d683151cdd12908ba0c3730198e0f Mon Sep 17 00:00:00 2001 From: Martin Helmich Date: Thu, 5 Sep 2024 09:21:30 +0200 Subject: [PATCH 2/3] Add missing mock clients --- src/Client/MockClient.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Client/MockClient.php b/src/Client/MockClient.php index 4a3c143..863a8ae 100644 --- a/src/Client/MockClient.php +++ b/src/Client/MockClient.php @@ -6,7 +6,6 @@ use Mittwald\ApiClient\Generated\V2\Clients\App\AppClient; use Mittwald\ApiClient\Generated\V2\Clients\Article\ArticleClient; use Mittwald\ApiClient\Generated\V2\Clients\Backup\BackupClient; -use Mittwald\ApiClient\Generated\V2\Clients\Container\ContainerClient; use Mittwald\ApiClient\Generated\V2\Clients\Contract\ContractClient; use Mittwald\ApiClient\Generated\V2\Clients\Conversation\ConversationClient; use Mittwald\ApiClient\Generated\V2\Clients\Cronjob\CronjobClient; @@ -16,6 +15,7 @@ use Mittwald\ApiClient\Generated\V2\Clients\File\FileClient; use Mittwald\ApiClient\Generated\V2\Clients\Mail\MailClient; use Mittwald\ApiClient\Generated\V2\Clients\Marketplace\MarketplaceClient; +use Mittwald\ApiClient\Generated\V2\Clients\Misc\MiscClient; use Mittwald\ApiClient\Generated\V2\Clients\Notification\NotificationClient; use Mittwald\ApiClient\Generated\V2\Clients\PageInsights\PageInsightsClient; use Mittwald\ApiClient\Generated\V2\Clients\Project\ProjectClient; @@ -44,10 +44,10 @@ class MockClient implements Client public FileClient&MockObject $file; public MailClient&MockObject $mail; public ArticleClient&MockObject $article; - public ContainerClient&MockObject $container; public PageInsightsClient&MockObject $pageInsights; public RelocationClient&MockObject $relocation; public MarketplaceClient&MockObject $marketplace; + public MiscClient&MockObject $misc; public function __construct(TestCase $test) { @@ -67,10 +67,10 @@ public function __construct(TestCase $test) $this->file = $test->getMockBuilder(FileClient::class)->getMock(); $this->mail = $test->getMockBuilder(MailClient::class)->getMock(); $this->article = $test->getMockBuilder(ArticleClient::class)->getMock(); - $this->container = $test->getMockBuilder(ContainerClient::class)->getMock(); $this->pageInsights = $test->getMockBuilder(PageInsightsClient::class)->getMock(); $this->relocation = $test->getMockBuilder(RelocationClient::class)->getMock(); $this->marketplace = $test->getMockBuilder(MarketplaceClient::class)->getMock(); + $this->misc = $test->getMockBuilder(MiscClient::class)->getMock(); } public function project(): ProjectClient @@ -153,11 +153,6 @@ public function article(): ArticleClient return $this->article; } - public function container(): ContainerClient - { - return $this->container; - } - public function pageInsights(): PageInsightsClient { return $this->pageInsights; @@ -173,4 +168,9 @@ public function marketplace(): MarketplaceClient return $this->marketplace; } + public function misc(): MiscClient + { + return $this->misc; + } + } \ No newline at end of file From 713704b8137467f5a6f459d7d35be825b529af8b Mon Sep 17 00:00:00 2001 From: Martin Helmich Date: Thu, 5 Sep 2024 09:25:46 +0200 Subject: [PATCH 3/3] Fix broken constructor usage --- tests/Recipes/TestFixture.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/Recipes/TestFixture.php b/tests/Recipes/TestFixture.php index 2db0b71..8a44588 100644 --- a/tests/Recipes/TestFixture.php +++ b/tests/Recipes/TestFixture.php @@ -76,13 +76,12 @@ public function __construct(TestCase $test) $this->depl->config->set('current_path', 'current'); $this->appInstallation = (new AppInstallation( - 'APP_ID', - new VersionStatus('1.0.0'), - 'description', - false, - 'INSTALLATION_ID', - '/foo', - 'a-XXXXXX', + appId: 'APP_ID', + appVersion: new VersionStatus('1.0.0'), + description: 'description', + id: 'INSTALLATION_ID', + installationPath: '/foo', + shortId: 'a-XXXXXX', )) ->withProjectId('PROJECT_ID');