Skip to content

Commit 57a5df9

Browse files
committed
Merge branch 'QA_5_2'
Also merges pull-request: #17591 Pull-request: #17591 Signed-off-by: William Desportes <williamdes@wdes.fr>
3 parents a176b85 + 995f688 + 4418fd3 commit 57a5df9

10 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/daily-snapshots.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
schedule:
1010
- cron: '0 0 * * *'
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
generate-snapshots:
1417
name: Generate ${{ matrix.version }} snapshots

.github/workflows/lint-and-analyse-php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- master
99
- QA_**
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
lint-node:
1316
runs-on: ubuntu-latest

.github/workflows/lint-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- master
99
- QA_**
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
lint-docs:
1316
runs-on: ubuntu-latest

.github/workflows/lock.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ on:
44
schedule:
55
- cron: '0 0 * * *'
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
lock:
12+
permissions:
13+
issues: write # for dessant/lock-threads to lock issues
914
runs-on: ubuntu-latest
1015
steps:
1116
- uses: dessant/lock-threads@v2

.github/workflows/mutation-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [master]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
tests:
1114
name: Mutation tests with PHP ${{ matrix.php-version }}

.github/workflows/other-tools.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- master
99
- QA_**
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build-documentation:
1316
runs-on: ubuntu-latest

.github/workflows/test-selenium.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- master
99
- QA_**
1010

11+
permissions:
12+
contents: read
13+
1114
env:
1215
php-version: "8.1"
1316

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- master
99
- QA_**
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
multi-arch-tests-php:
1316
name: Test on PHP ${{ matrix.php-version }} (${{ matrix.arch }})

.github/workflows/update-po.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
schedule:
66
- cron: '0 0 * * 0'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
update-po:
13+
permissions:
14+
contents: write # for Git to git push
1015
name: Update po files
1116
runs-on: ubuntu-latest
1217
# Source: https://github.community/t/do-not-run-cron-workflows-in-forks/17636/2?u=williamdes

test/classes/Utils/SessionCacheTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ public function testHas(): void
6262

6363
SessionCache::set('test_data', 5);
6464
SessionCache::set('test_data_2', 5);
65+
SessionCache::set('test_data_3', false);
66+
SessionCache::set('test_data_4', true);
6567

6668
$this->assertTrue(SessionCache::has('test_data'));
6769
$this->assertTrue(SessionCache::has('test_data_2'));
70+
$this->assertTrue(SessionCache::has('test_data_3'));
71+
$this->assertTrue(SessionCache::has('test_data_4'));
6872
$this->assertFalse(SessionCache::has('fake_data_2'));
6973
}
7074

0 commit comments

Comments
 (0)