From 6a2fbc9ce414867559ddce9d6c8943b4974b2b40 Mon Sep 17 00:00:00 2001 From: Daniel Thies Date: Sat, 20 Jan 2024 07:43:16 -0600 Subject: [PATCH] test --- .github/workflows/moodle-ci.yml | 39 +------------------ source/file/templates/media_resource.mustache | 7 ++++ source/streamio/classes/api.php | 2 +- 3 files changed, 10 insertions(+), 38 deletions(-) diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 0bcdff7..a332083 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -32,20 +32,8 @@ jobs: moodle-branch: 'master' database: 'pgsql' - php: '8.1' - moodle-branch: 'master' - database: 'mariadb' - - php: '8.1' - moodle-branch: 'MOODLE_403_STABLE' - database: 'pgsql' - - php: '8.0' moodle-branch: 'MOODLE_403_STABLE' - database: 'mariadb' - - php: '8.0' - moodle-branch: 'MOODLE_402_STABLE' database: 'pgsql' - - php: '8.0' - moodle-branch: 'MOODLE_401_STABLE' - database: 'mariadb' steps: - name: Check out repository code @@ -78,13 +66,9 @@ jobs: if: ${{ always() }} run: moodle-plugin-ci phplint - # - name: PHP Copy/Paste Detector - #if: ${{ always() }} - #run: moodle-plugin-ci phpcpd - - - name: PHP Mess Detector + - name: PHP Copy/Paste Detector if: ${{ always() }} - run: moodle-plugin-ci phpmd + run: moodle-plugin-ci phpcpd - name: Moodle Code Checker if: ${{ always() }} @@ -94,26 +78,7 @@ jobs: if: ${{ always() }} run: moodle-plugin-ci phpdoc - - name: Validating - if: ${{ always() }} - run: moodle-plugin-ci validate - - - name: Check upgrade savepoints - if: ${{ always() }} - run: moodle-plugin-ci savepoints - - name: Mustache Lint if: ${{ always() }} run: moodle-plugin-ci mustache - - name: Grunt - if: ${{ matrix.moodle-branch == 'MOODLE_403_STABLE' }} - run: moodle-plugin-ci grunt - - - name: PHPUnit tests - if: ${{ always() }} - run: moodle-plugin-ci phpunit - - - name: Behat features - if: ${{ always() }} - run: moodle-plugin-ci behat --profile chrome diff --git a/source/file/templates/media_resource.mustache b/source/file/templates/media_resource.mustache index 00539ee..daf12cb 100644 --- a/source/file/templates/media_resource.mustache +++ b/source/file/templates/media_resource.mustache @@ -25,6 +25,13 @@ Example context (json): { + canedit: true, + id: 2, + resource: { + title: "title", + name: "name", + desciption: "big and blue" + } } }} diff --git a/source/streamio/classes/api.php b/source/streamio/classes/api.php index 2394ce1..bc4d899 100644 --- a/source/streamio/classes/api.php +++ b/source/streamio/classes/api.php @@ -90,7 +90,7 @@ public function request($endpoint, $params = [], $method = 'GET') { /** * Create upload token for Streamio * - * @param ?array $params Fields to set for video + * @param null|array $params Fields to set for video * @return string */ public function create_token(?array $params = []) {