Skip to content

Commit

Permalink
Bump package
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Apr 11, 2023
1 parent 5796050 commit f93255d
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 519 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ jobs:
sudo apt-get update
sudo apt-get install ghostscript
- name: SMTP service
uses: upgundecha/start-sendria-github-action@v1.0.0
with:
smtp-port: 1025

- name: Set up Nextcloud
run: |
if [ "${{ matrix.databases }}" = "mysql" ]; then
Expand All @@ -108,9 +113,11 @@ jobs:
--admin-user=admin \
--admin-pass=admin
./occ app:enable ${{ env.APP_NAME }}
./occ config:system:set mail_smtpport --value 1025 --type integer
./occ config:system:set mail_smtphost --value 127.0.0.1
- name: Run behat
working-directory: apps/${{ env.APP_NAME }}/tests/integration
env:
BEHAT_ROOT_DIR: ../../../../
run: vendor/bin/behat -f junit -f pretty --colors
run: vendor/bin/behat -f junit -f pretty --colors -v
2 changes: 1 addition & 1 deletion lib/Helper/ValidateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function validateFile(array $data, int $type = self::TYPE_TO_SIGN): void
return;
}
if (empty($data['file']['url']) && empty($data['file']['base64']) && empty($data['file']['fileId'])) {
throw new LibresignException($this->l10n->t('File type: %s. Inform URL or base64 or fileID.', [$this->getTypeOfFile($type)]));
throw new LibresignException($this->l10n->t('File type: %s. Specify a URL, a base64 string or a fileID.', [$this->getTypeOfFile($type)]));
}
if (!empty($data['file']['fileId'])) {
if (!is_numeric($data['file']['fileId'])) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Migration/Version8000Date20230402103824.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
class Version8000Date20230402103824 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param Closure(): ISchemaWrapper $schemaClosure
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
* @return null|ISchemaWrapper
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Helper/ValidateHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function getValidateHelper(): ValidateHelper {
}

public function testValidateFileWithoutAllNecessaryData() {
$this->expectExceptionMessage('File type: %s. Inform URL or base64 or fileID.');
$this->expectExceptionMessage('File type: %s. Specify a URL, a base64 string or a fileID.');
$this->getValidateHelper()->validateFile([
'file' => ['invalid'],
'name' => 'test'
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
},
"require-dev": {
"libresign/behat-builtin-extension": "^0.4.3",
"libresign/nextcloud-behat": "^0.3.0"
"libresign/nextcloud-behat": "^0.5.0"
}
}
Loading

0 comments on commit f93255d

Please sign in to comment.