Skip to content

Commit

Permalink
Add one more post states test
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Sep 3, 2016
1 parent 613a660 commit 9a37659
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/class-extended-post-status-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ public function test_register_car_post_status() {
$this->assertSame( 'Car', $post_status_object->label );
}

public function test_post_states_bad_post_object() {
$class = new Extended_Post_Status( 'car', [
'label' => 'Car'
] );

$this->assertSame( [], $class->post_states( [], null ) );
}

public function test_post_states_wrong_post_type() {
$class = new Extended_Post_Status( 'car', [
'label' => 'Car'
Expand Down

0 comments on commit 9a37659

Please sign in to comment.