diff --git a/tests/Feature/Admin/AppearanceTest.php b/tests/Feature/Admin/AppearanceTest.php
index 4937d3e5..a16e5137 100644
--- a/tests/Feature/Admin/AppearanceTest.php
+++ b/tests/Feature/Admin/AppearanceTest.php
@@ -323,4 +323,19 @@ class AppearanceTest extends TestCase
}
$this->assertCount(2, $seen, 'Beide Titelbilder kommen vor');
}
+
+ public function test_page_header_style_is_chosen_globally(): void
+ {
+ $theme = app(Theme::class);
+ $this->assertSame('band', $theme->published()['page_header'] ?? 'band', 'Standard: Kopfband');
+
+ $theme->saveDraft(['page_header' => 'icon']);
+ $this->assertSame('icon', $theme->draft()['page_header']);
+ $theme->saveDraft(['page_header' => 'unsinn']);
+ $this->assertSame('band', $theme->draft()['page_header']);
+
+ app(Settings::class)->set('theme.published', [...$theme->published(), 'page_header' => 'bold']);
+ $this->app->forgetInstance(Branding::class);
+ $this->assertSame('bold', app(Branding::class)->toArray()['page_header']);
+ }
}
diff --git a/tests/Feature/Plugins/PluginSdkTest.php b/tests/Feature/Plugins/PluginSdkTest.php
index 417f8fee..92a9e90b 100644
--- a/tests/Feature/Plugins/PluginSdkTest.php
+++ b/tests/Feature/Plugins/PluginSdkTest.php
@@ -132,8 +132,9 @@ class PluginSdkTest extends TestCase
$this->assertSame(file_get_contents($this->dir.'/custom/mit-ui/dist/pages/Index.js'), file_get_contents($published.'/pages/Index.js'));
// Neuer Build bei gleicher Version wird neu kopiert
+ // (Seiten behalten ihren Namen – inhaus.json bleibt gleich, nur die Datei ist neuer)
file_put_contents($this->dir.'/custom/mit-ui/dist/pages/Index.js', 'export default { neu: true };');
- file_put_contents($this->dir.'/custom/mit-ui/dist/inhaus.json', "\n", FILE_APPEND);
+ touch($this->dir.'/custom/mit-ui/dist/pages/Index.js', time() + 60);
(new PluginAssets($manager))->forFrontend();
$this->assertStringContainsString('neu: true', file_get_contents($published.'/pages/Index.js'));
diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php
index 73d2ec4c..bbad6338 100644
--- a/vendor/composer/installed.php
+++ b/vendor/composer/installed.php
@@ -3,7 +3,7 @@
'name' => 'inhaus/inhaus',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
- 'reference' => '8297d6014257b56f3be6347f6bf016ae804551d5',
+ 'reference' => '36a58d47483e4fe6c98a0831d0d08b9aa92dbd01',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -550,7 +550,7 @@
'inhaus/inhaus' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
- 'reference' => '8297d6014257b56f3be6347f6bf016ae804551d5',
+ 'reference' => '36a58d47483e4fe6c98a0831d0d08b9aa92dbd01',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),