wordpress-activitypub/tests/test-class-activitypub.php

11 lines
363 B
PHP
Raw Permalink Normal View History

2019-02-28 19:32:03 +01:00
<?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' ) );
}
}