Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 6 additions & 2 deletions tests/TestCase/BEditaClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

/**
Expand Down Expand Up @@ -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']);
}

/**
Expand Down