mirror of
https://gh.wpcy.net/https://github.com/WordPress/create-block-theme.git
synced 2026-04-25 12:02:15 +08:00
20 lines
537 B
PHP
20 lines
537 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/base.php';
|
|
|
|
/**
|
|
* Test the file_path method of the CBT_Theme_Readme class.
|
|
*
|
|
* @package Create_Block_Theme
|
|
* @covers CBT_Theme_Readme::file_path
|
|
* @group readme
|
|
*/
|
|
class CBT_ThemeReadme_FilePath extends CBT_Theme_Readme_UnitTestCase {
|
|
public function test_file_path() {
|
|
$result = CBT_Theme_Readme::file_path();
|
|
$expected = get_stylesheet_directory() . '/readme.txt';
|
|
$this->assertEquals( $expected, $result );
|
|
|
|
$this->assertEquals( 'test-theme-readme', get_option( 'stylesheet' ) );
|
|
}
|
|
}
|