Index: tests/kses.php
===================================================================
--- tests/kses.php	(revision 1011)
+++ tests/kses.php	(working copy)
@@ -295,4 +295,29 @@
 			}
 		}
 	}
+
+	public function test_wp_kses_allowed_html() {
+		global $allowedposttags, $allowedtags, $allowedentitynames;
+
+		// These won't be equal because wp_kses_allowed_html() adds global attributes
+		$this->assertNotEquals( $allowedposttags, wp_kses_allowed_html( 'post' ) );
+
+		$allowed_tags = wp_kses_allowed_html( 'post' ) ;
+
+		foreach ( $allowed_tags as $tag ) {
+			$this->assertTrue( $tag['class'] );
+			$this->assertTrue( $tag['id'] );
+			$this->assertTrue( $tag['style'] );
+			$this->assertTrue( $tag['title'] );
+		}
+
+		$this->assertEquals( $allowedtags, wp_kses_allowed_html( 'data' ) );
+		$this->assertEquals( $allowedtags, wp_kses_allowed_html( '' ) );
+		$this->assertEquals( $allowedtags, wp_kses_allowed_html() );
+
+		$allowed_tags = wp_kses_allowed_html( 'user_description' );
+		$this->assertTrue( $allowed_tags['a']['rel'] );
+
+		$this->assertEquals( array(), wp_kses_allowed_html( 'strip' ) );
+	}
 }
