diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index ed454b4..77c84bc 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -62,7 +62,7 @@ jobs: run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV" - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: $COMPOSER_CACHE key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -128,7 +128,7 @@ jobs: run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV" - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: $COMPOSER_CACHE key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -184,7 +184,7 @@ jobs: run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV" - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: $COMPOSER_CACHE key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -246,7 +246,7 @@ jobs: run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$env:GITHUB_ENV" - name: Cache composer dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: $COMPOSER_CACHE key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -265,13 +265,13 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: coverage-data path: ${{ github.workspace }}/build - name: Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true diff --git a/tests/src/Controller/MetaRefreshTest.php b/tests/src/Controller/MetaRefreshTest.php index 29707a7..f1f1e32 100644 --- a/tests/src/Controller/MetaRefreshTest.php +++ b/tests/src/Controller/MetaRefreshTest.php @@ -8,7 +8,6 @@ use SimpleSAML\Configuration; use SimpleSAML\Module\metarefresh\Controller; use SimpleSAML\Utils; -use Symfony\Component\HttpFoundation\Request; /** * Set of tests for the controllers in the "metarefresh" module. @@ -94,17 +93,13 @@ public function testMetaRefresh() $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1'; Configuration::setPreLoadedConfig($this->authsources, 'authsources.php'); - $request = Request::create( - '/', - 'GET' - ); $c = new Controller\MetaRefresh($this->config); $c->setAuthUtils($this->authUtils); $c->setModuleConfig($this->module_config); /** @var \SimpleSAML\XHTML\Template $response */ - $response = $c->main($request); + $response = $c->main(); $this->assertTrue($response->isSuccessful());