Skip to content

Commit b09073a

Browse files
committed
WP/Capabilities: move syntax error test to its own file
1 parent 5570af3 commit b09073a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

WordPress/Tests/WP/CapabilitiesUnitTest.1.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,3 @@ add_menu_page( [] ); // Should bow out because the parameter is not found.
112112

113113
$obj->current_user_can( 'foo_bar' ); // Ok. We're not checking for method calls.
114114
My\NamespaceS\add_posts_page( 'page_title', 'menu_title', 'administrator', 'menu_slug', 'function' ); // Ok. We're not checking namespaced functions.
115-
116-
// Parse error, should be handled correctly by bowing out.
117-
// This must be the last test in the file!
118-
add_posts_page( 'page_title',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
/*
4+
* Intentional parse error (nothing after comma separating parameters).
5+
* This should be the only test in this file.
6+
*/
7+
8+
add_posts_page( 'page_title',

0 commit comments

Comments
 (0)