feat: add CHRNX shell and theme preference
This commit is contained in:
18 files changed
+633
-16
No files matched your search
@@ -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' );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user