Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m21s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m34s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 3m8s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 3m6s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 2m43s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 2m47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m1s
- Formulare: Felder fest aus dem Profil (nicht änderbar, Server setzt den Profilwert ein), Hinweis bei fehlender Profilangabe - Geburtstage (optionales Plugin, standardmäßig aus): Tag und Monat freiwillig im Profil, Kachel, Liste /geburtstage, Pagebuilder-Block, Glückwunsch am eigenen Geburtstag; Sichtbarkeit alle/Abteilung/Standort - Startseite: Kacheln je Bereich sortieren und ausblenden; eigene Kacheln (Bild mit Link, Text, Hinweis) mit Zeitraum und Zielgruppe - Kern: optionale mitgelieferte Plugins, Startseitenbereich „top“, Profilabschnitte für Plugins, Kachel-Bezeichnungen Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
36 lines
924 B
PHP
36 lines
924 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use App\Plugins\PluginState;
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
use Illuminate\Testing\TestResponse;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
public function createApplication()
|
|
{
|
|
// Optionale mitgelieferte Plugins (z. B. Geburtstage) in Tests mitladen.
|
|
PluginState::$enableOptionalCorePlugins = true;
|
|
|
|
return parent::createApplication();
|
|
}
|
|
|
|
/**
|
|
* Props einer Startseiten-Kachel (oder null, wenn sie nicht angezeigt wird).
|
|
*
|
|
* @return array<string, mixed>|null
|
|
*/
|
|
protected function dashboardWidget(TestResponse $response, string $key): ?array
|
|
{
|
|
$widgets = $response->viewData('page')['props']['widgets'] ?? [];
|
|
|
|
foreach ($widgets as $widget) {
|
|
if ($widget['key'] === $key) {
|
|
return $widget['props'];
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|