diff --git a/.github/workflows/phpunit-nodb.yml b/.github/workflows/phpunit-nodb.yml index 023b36175554a..7f8ddaeb0bf35 100644 --- a/.github/workflows/phpunit-nodb.yml +++ b/.github/workflows/phpunit-nodb.yml @@ -105,9 +105,15 @@ jobs: ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin php -f tests/enable_all.php + - name: Add problem matchers for PHPUnit + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: PHPUnit nodb testsuite run: composer run test -- --exclude-group DB --exclude-group SLOWDB --log-junit junit.xml ${{ matrix.coverage && '--coverage-clover ./clover.nodb.xml' || '' }} + - name: Remove problem matchers for PHPUnit + run: echo "::remove-matcher owner=phpunit::" + - name: Upload nodb code coverage if: ${{ !cancelled() && matrix.coverage }} uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php index 6738cafdb1ff2..e896d72980e82 100644 --- a/tests/lib/UtilTest.php +++ b/tests/lib/UtilTest.php @@ -25,7 +25,7 @@ class UtilTest extends \Test\TestCase { public function testGetVersion(): void { $version = Util::getVersion(); - $this->assertTrue(is_array($version)); + $this->assertTrue(!is_array($version)); foreach ($version as $num) { $this->assertTrue(is_int($num)); }