Add @expectedIncorrectUsage to Tests_Taxonomy::test_register_long_taxonomy().
see #28683. git-svn-id: https://develop.svn.wordpress.org/trunk@28926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5235448195
commit
a756c57fd9
|
@ -127,6 +127,8 @@ class Tests_Taxonomy extends WP_UnitTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ticket 21593
|
* @ticket 21593
|
||||||
|
*
|
||||||
|
* @expectedIncorrectUsage register_taxonomy
|
||||||
*/
|
*/
|
||||||
function test_register_long_taxonomy() {
|
function test_register_long_taxonomy() {
|
||||||
$this->assertInstanceOf( 'WP_Error', register_taxonomy( 'abcdefghijklmnopqrstuvwxyz0123456789', 'post', array() ) );
|
$this->assertInstanceOf( 'WP_Error', register_taxonomy( 'abcdefghijklmnopqrstuvwxyz0123456789', 'post', array() ) );
|
||||||
|
|
Loading…
Reference in New Issue