mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Build/Test Tools: Reduce the use of unnecessary randomness in tests.
This increases the overall reliability of the tests. Props johnillo Fixes #37371 git-svn-id: https://develop.svn.wordpress.org/trunk@52389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -299,7 +299,7 @@ class Tests_Theme extends WP_UnitTestCase {
|
||||
// get_query_template()
|
||||
|
||||
// Template file that doesn't exist.
|
||||
$this->assertSame( '', get_query_template( rand_str() ) );
|
||||
$this->assertSame( '', get_query_template( 'nonexistant' ) );
|
||||
|
||||
// Template files that do exist.
|
||||
/*
|
||||
@@ -333,8 +333,8 @@ class Tests_Theme extends WP_UnitTestCase {
|
||||
|
||||
public function test_switch_theme_bogus() {
|
||||
// Try switching to a theme that doesn't exist.
|
||||
$template = rand_str();
|
||||
$style = rand_str();
|
||||
$template = 'some_template';
|
||||
$style = 'some_style';
|
||||
update_option( 'template', $template );
|
||||
update_option( 'stylesheet', $style );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user