From 6e5fa732b05372bd0342b8eeb2b4d14608cfa2c5 Mon Sep 17 00:00:00 2001 From: dante di domenico Date: Tue, 21 Oct 2025 17:02:35 +0200 Subject: [PATCH 1/3] feat: BE v6-alpha --- .github/workflows/php.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d892d97..bf3b566 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -38,3 +38,10 @@ jobs: php_versions: '["8.3"]' bedita_version: '5' coverage_min_percentage: 99 + + unit-6: + uses: bedita/github-workflows/.github/workflows/php-unit.yml@v2 + with: + php_versions: '["8.4"]' + bedita_version: '6-alpha' + coverage_min_percentage: 99 From 25cedc5a85a9ebdb069493eaf16fcd4d03908817 Mon Sep 17 00:00:00 2001 From: dante di domenico Date: Thu, 30 Oct 2025 10:35:19 +0100 Subject: [PATCH 2/3] tests: bulk --- tests/TestCase/BEditaClientTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/TestCase/BEditaClientTest.php b/tests/TestCase/BEditaClientTest.php index 7f54b6e..7dddc9f 100644 --- a/tests/TestCase/BEditaClientTest.php +++ b/tests/TestCase/BEditaClientTest.php @@ -176,7 +176,9 @@ public function testBulkEdit(): void static::assertArrayHasKey('saved', $response); static::assertArrayNotHasKey('error', $response); static::assertEquals([$id1], $response['saved']); - static::assertEquals([['id' => $id2, 'message' => 'Operation not allowed on "locked" objects']], $response['errors']); + $actual = $response['errors']; + static::assertEquals($id2, $actual[0]['id']); + static::assertContains('Operation not allowed on "locked" objects', $actual[0]['message']); } /** @@ -232,7 +234,9 @@ public function post(string $path, ?string $body = null, ?array $headers = null) static::assertArrayHasKey('saved', $response); static::assertArrayNotHasKey('error', $response); static::assertEquals([$id1], $response['saved']); - static::assertEquals([['id' => $id2, 'message' => '[403] Not Found']], $response['errors']); + $actual = $response['errors']; + static::assertEquals($id2, $actual[0]['id']); + static::assertContains('[403]', $actual[0]['message']); } /** From d87dfde86e0ee19eb9496645fc3ec5f4d8cbfa86 Mon Sep 17 00:00:00 2001 From: dante di domenico Date: Thu, 30 Oct 2025 10:40:15 +0100 Subject: [PATCH 3/3] fix: tests --- tests/TestCase/BEditaClientTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestCase/BEditaClientTest.php b/tests/TestCase/BEditaClientTest.php index 7dddc9f..cb19fb1 100644 --- a/tests/TestCase/BEditaClientTest.php +++ b/tests/TestCase/BEditaClientTest.php @@ -178,7 +178,7 @@ public function testBulkEdit(): void static::assertEquals([$id1], $response['saved']); $actual = $response['errors']; static::assertEquals($id2, $actual[0]['id']); - static::assertContains('Operation not allowed on "locked" objects', $actual[0]['message']); + static::assertStringContainsString('Operation not allowed on "locked" objects', $actual[0]['message']); } /** @@ -236,7 +236,7 @@ public function post(string $path, ?string $body = null, ?array $headers = null) static::assertEquals([$id1], $response['saved']); $actual = $response['errors']; static::assertEquals($id2, $actual[0]['id']); - static::assertContains('[403]', $actual[0]['message']); + static::assertStringContainsString('[403]', $actual[0]['message']); } /**