2019-02-28 19:32:03 +01:00
|
|
|
<?php
|
|
|
|
class Test_Activitypub extends WP_UnitTestCase {
|
|
|
|
public function test_post_type_support() {
|
2020-05-12 20:30:06 +02:00
|
|
|
\add_post_type_support( 'post', 'activitypub' );
|
|
|
|
\add_post_type_support( 'page', 'activitypub' );
|
2019-02-28 19:32:03 +01:00
|
|
|
|
2020-05-12 20:30:06 +02:00
|
|
|
$this->assertContains( 'post', \get_post_types_by_support( 'activitypub' ) );
|
|
|
|
$this->assertContains( 'page', \get_post_types_by_support( 'activitypub' ) );
|
2019-02-28 19:32:03 +01:00
|
|
|
}
|
|
|
|
}
|