Skip to content

Commit

Permalink
Fix covers annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 3, 2022
1 parent a195641 commit 7d25e75
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/phpunit/integration/tests/Story_Revisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Google\Web_Stories\Story_Post_Type;

/**
* @coversDefaultClass \Google\Web_Stories\Admin\Admin
* @coversDefaultClass \Google\Web_Stories\Story_Revisions
*/
class Story_Revisions extends DependencyInjectedTestCase {

Expand Down Expand Up @@ -105,10 +105,16 @@ public function data_test_revisions_to_keep(): array {
];
}

/**
* @covers ::filter_revision_fields
*/
public function test_filter_revision_fields_not_an_array(): void {
$this->assertSame( 'foo', $this->instance->filter_revision_fields( 'foo', [] ) );
}

/**
* @covers ::filter_revision_fields
*/
public function test_filter_revision_fields_wrong_post_type(): void {
$fields = [
'post_title' => 'Post title',
Expand All @@ -126,6 +132,9 @@ public function test_filter_revision_fields_wrong_post_type(): void {
);
}

/**
* @covers ::filter_revision_fields
*/
public function test_filter_revision_fields_story_post_type(): void {
$fields = [
'post_title' => 'Post title',
Expand All @@ -142,6 +151,9 @@ public function test_filter_revision_fields_story_post_type(): void {
$this->assertArrayHasKey( 'post_content_filtered', $actual );
}

/**
* @covers ::filter_revision_fields
*/
public function test_filter_revision_fields_story_post_type_revision(): void {
$fields = [
'post_title' => 'Post title',
Expand Down

0 comments on commit 7d25e75

Please sign in to comment.