Skip to content

Commit 359c973

Browse files
fix tests
1 parent af7b637 commit 359c973

6 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/_test-smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919

2020
jobs:
2121
test:
22-
name: Run Code Samples
22+
name: Run Smoke Tests
2323
timeout-minutes: 30
2424
strategy:
2525
max-parallel: 2

.github/workflows/cron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ on:
55
- cron: '42 0 * * *'
66

77
jobs:
8-
test-code-samples:
8+
smoke-test:
99
uses: mindee/mindee-api-php/.github/workflows/_test-smoke.yml@main
1010
secrets: inherit

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: ./.github/workflows/_test-integrations.yml
2222
needs: test-units
2323
secrets: inherit
24-
test-code-samples:
24+
smoke-test:
2525
uses: ./.github/workflows/_test-smoke.yml
2626
needs: test-units
2727
secrets: inherit

src/Http/MindeeApiV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ private function documentEnqueuePost(
401401
}
402402
if (isset($params->webhooksIds) && count($params->webhooksIds) > 0) {
403403
if (PHP_VERSION_ID < 80200 && count($params->webhooksIds) > 1) {
404-
# NOTE: see https://bugs.php.net/bug.php?id=51634
404+
// NOTE: see https://bugs.php.net/bug.php?id=51634
405405
error_log("PHP version is too low to support webbook array destructuring.
406406
\nOnly the first webhook ID will be sent to the server.");
407407
$postFields['webhook_ids'] = $params->webhooksIds[0];

tests/V2/Product/OcrFunctional.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ public function testOcrDefaultSampleMustSucceed(): void
5252
$this->assertNotNull($pages);
5353
$this->assertCount(1, $pages);
5454
}
55-
}
55+
}

tests/V2/Product/SplitFunctional.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ protected function setUp(): void
3131
*/
3232
public function testSplitDefaultSampleMustSucceed(): void
3333
{
34-
// Matched exactly to the C# Constants.V2RootDir pathing
3534
$inputSource = new PathInput(
36-
TestingUtilities::getV2RootDir() . '/products/split/default_sample.pdf'
35+
TestingUtilities::getV2ProductDir() . '/products/split/default_sample.pdf'
3736
);
3837

3938
$productParams = new SplitParameters($this->splitModelId);

0 commit comments

Comments
 (0)