create-block-theme/tests/CbtThemeReadme/filePath.php
Matias Benedetto 424ebee3b1
Add prefix to the names in the PHP global namespace. (#628)
Co-authored-by: Jason Crist <jcrist@pbking.com>
2024-05-14 07:27:30 -04:00

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' ) );
}
}