Remove tests for code still in development, see #22229. If accidentally run, they produce fatal errors.

props pauldewouters, no_fear_inc.


git-svn-id: https://develop.svn.wordpress.org/trunk@25711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-10-07 14:17:13 +00:00
parent 55ee5c4894
commit c02412fa8d

View File

@ -136,41 +136,4 @@ class Tests_Dependencies extends WP_UnitTestCase {
$this->assertFalse( $dep->query( 'one' ) );
}
/**
* @ticket 22229
*/
function test_add_deps_should_add_one_string_dep() {
$dep = new WP_Dependencies;
$dep->add( 'baba', '', array( 'dep0' ) );
$dep->add_deps( 'baba', 'new-dep' );
$this->assertEquals( array( 'dep0', 'new-dep' ), $dep->query( 'baba' )->deps );
}
/**
* @ticket 22229
*/
function test_add_deps_should_merge_deps() {
$dep = new WP_Dependencies;
$dep->add( 'baba', '', array( 'dep0' ) );
$dep->add_deps( 'baba', array( 'new-dep', 'another-dep' ) );
$this->assertEquals( array( 'dep0', 'new-dep', 'another-dep' ), $dep->query( 'baba' )->deps );
}
/**
* @ticket 22229
*/
function test_add_deps_should_return_false_on_non_string_non_array_deps() {
$dep = new WP_Dependencies;
$dep->add( 'baba', '', array( 'dep0' ) );
$this->assertFalse( $dep->add_deps( 'baba', 5 ) );
}
/**
* @ticket 22229
*/
function test_add_deps_should_return_false_on_non_registered_handle() {
$dep = new WP_Dependencies;
$this->assertFalse( $dep->add_deps( 'baba', 'dep0' ) );
}
}