wordpress-activitypub/tests/test-class-activitypub.php
2019-02-28 19:32:03 +01:00

10 lines
363 B
PHP

<?php
class Test_Activitypub extends WP_UnitTestCase {
public function test_post_type_support() {
add_post_type_support( 'post', 'activitypub' );
add_post_type_support( 'page', 'activitypub' );
$this->assertContains( 'post', get_post_types_by_support( 'activitypub' ) );
$this->assertContains( 'page', get_post_types_by_support( 'activitypub' ) );
}
}