feat: add CHRNX shell and theme preference

This commit is contained in:
chrnx committed 2026-08-11 16:54:17 -05:00
1 parent aad237b211
commit f371db4cb5
18 files changed
+633 -16

No files matched your search

+6
View File
@@ -33,6 +33,7 @@ class ThemeSetupTest extends WP_UnitTestCase {
global $editor_styles;
$this->assertContains( 'assets/css/base.css', $editor_styles );
$this->assertContains( 'assets/css/layout.css', $editor_styles );
}
/**
@@ -54,9 +55,14 @@ class ThemeSetupTest extends WP_UnitTestCase {
$this->assertSame( get_theme_file_uri( 'assets/css/base.css' ), $base->src );
$this->assertSame( CHRNX_VERSION, $base->ver );
$this->assertTrue( wp_style_is( 'chrnx-layout', 'enqueued' ) );
$this->assertSame( array( 'chrnx-base' ), $styles->registered['chrnx-layout']->deps );
$this->assertSame( get_theme_file_uri( 'assets/css/layout.css' ), $styles->registered['chrnx-layout']->src );
} finally {
wp_dequeue_style( 'chrnx-base' );
wp_deregister_style( 'chrnx-base' );
wp_dequeue_style( 'chrnx-layout' );
wp_deregister_style( 'chrnx-layout' );
}
}
}