feat: establish CHRNX block theme foundation
This commit is contained in:
21 files changed
+2394
-13
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Tests for theme setup.
|
||||
*
|
||||
* @package CHRNX
|
||||
*/
|
||||
|
||||
/**
|
||||
* Verify the theme's WordPress setup contract.
|
||||
*/
|
||||
class ThemeSetupTest extends WP_UnitTestCase {
|
||||
/**
|
||||
* Ensure the required theme supports are registered.
|
||||
*/
|
||||
public function test_required_theme_supports_are_registered() {
|
||||
$this->assertTrue( current_theme_supports( 'title-tag' ) );
|
||||
$this->assertTrue( current_theme_supports( 'post-thumbnails' ) );
|
||||
$this->assertTrue( current_theme_supports( 'responsive-embeds' ) );
|
||||
$this->assertTrue( current_theme_supports( 'editor-styles' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure the card crop is available to future card components.
|
||||
*/
|
||||
public function test_card_image_size_is_registered() {
|
||||
$this->assertTrue( has_image_size( 'chrnx-card' ) );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user