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 diff --git a/tests/TestCase/BEditaClientTest.php b/tests/TestCase/BEditaClientTest.php index 7f54b6e..cb19fb1 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::assertStringContainsString('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::assertStringContainsString('[403]', $actual[0]['message']); } /**