Rollen ausschließen: bei Inhalten (Zielgruppen) und für ganze Module
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m45s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m25s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m21s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m49s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m21s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m30s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m45s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m25s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m21s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m49s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m21s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m30s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
19193b850b
commit
1877a0922f
113 changed files with 699 additions and 428 deletions
|
|
@ -88,10 +88,10 @@ class AudienceTest extends TestCase
|
|||
public function test_audience_sync_replaces_rules(): void
|
||||
{
|
||||
Audiences::sync('event', 5, ['department' => ['Pflege', 'Pflege', ''], 'location' => ['Hamburg']]);
|
||||
$this->assertSame(['role' => [], 'department' => ['Pflege'], 'location' => ['Hamburg']], Audiences::get('event', 5));
|
||||
$this->assertSame(['role' => [], 'department' => ['Pflege'], 'location' => ['Hamburg'], 'exclude_role' => []], Audiences::get('event', 5));
|
||||
|
||||
Audiences::sync('event', 5, []);
|
||||
$this->assertSame(['role' => [], 'department' => [], 'location' => []], Audiences::get('event', 5));
|
||||
$this->assertSame(['role' => [], 'department' => [], 'location' => [], 'exclude_role' => []], Audiences::get('event', 5));
|
||||
$this->assertTrue(Audiences::allows('event', 5, null));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue