1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-29 12:43:15 +01:00

[ticket/17176] Ensure slow tests are not run when not selected

PHPBB3-17176
This commit is contained in:
Marc Alexander 2023-09-09 12:27:52 +02:00
parent 1f9d14357c
commit 3e2628fb73
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 5 additions and 5 deletions

View File

@ -125,12 +125,12 @@ jobs:
- php: '8.1'
db: "mysql:5.7"
db_alias: "MySQL Slow Tests"
type: 'unit'
type: 'slow'
SLOWTESTS: 1
- php: '8.1'
db: "mysql:5.7"
db_alias: "MyISAM Tests"
type: 'functional'
type: 'MyISAM'
MYISAM: 1
name: ${{ matrix.type }} - PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
@ -225,7 +225,7 @@ jobs:
DB: ${{steps.database-type.outputs.db}}
if: ${{ matrix.SLOWTESTS != 1 && matrix.NOTESTS != 1 && matrix.type == 'unit' }}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-$DB-github.xml --verbose --stop-on-error --exclude-group functional
phpBB/vendor/bin/phpunit --configuration .github/phpunit-$DB-github.xml --verbose --stop-on-error --exclude-group functional,slow
- name: Run functional tests
env:
@ -566,7 +566,7 @@ jobs:
- name: Run unit tests
if: ${{ matrix.type == 'unit' }}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-psql-windows-github.xml --verbose --stop-on-error --exclude-group functional
phpBB/vendor/bin/phpunit --configuration .github/phpunit-psql-windows-github.xml --verbose --stop-on-error --exclude-group functional,slow
- name: Run functional tests
if: ${{ matrix.type == 'functional' }}
run: |

View File

@ -201,7 +201,7 @@ class ldap extends base
1
);
$ldap_result = @ldap_get_entries($ldap, $search);
$ldap_result = $search !== false ? @ldap_get_entries($ldap, $search) : [];
if (is_array($ldap_result) && count($ldap_result) > 1)
{