Changeset 847 in tests
- Timestamp:
- 07/02/2012 01:03:34 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-testcase/test_shortcode.php
r828 r847 5 5 class TestShortcode extends WP_UnitTestCase { 6 6 7 protected $shortcodes = array( 'footag', 'bartag', 'baztag', 'dumptag' , 'paragraph');7 protected $shortcodes = array( 'footag', 'bartag', 'baztag', 'dumptag' ); 8 8 9 9 function setUp() { … … 55 55 } 56 56 57 // testing p-wrapping of shortcode output58 function _shortcode_paragraph( $atts ) {59 extract(shortcode_atts(array(60 'class' => 'graf',61 ), $atts));62 return "<p class='$class'>$content</p>\n";63 }64 65 57 function _shortcode_tag($atts, $content=NULL, $tagname=NULL) { 66 58 $this->atts = $atts;
Note: See TracChangeset
for help on using the changeset viewer.