Skip to content

Commit cf15fad

Browse files
committed
test: assert published status for gate layouts
1 parent 174c59a commit cf15fad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit-tests/content-gate/content-gates.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ public function test_create_gate_creates_layouts() {
273273
$this->assertNotNull( $custom_access_layout, 'Custom access layout post should exist' );
274274
$this->assertEquals( Content_Gate::GATE_LAYOUT_CPT, $registration_layout->post_type, 'Registration layout should be correct post type' );
275275
$this->assertEquals( Content_Gate::GATE_LAYOUT_CPT, $custom_access_layout->post_type, 'Custom access layout should be correct post type' );
276+
$this->assertEquals( 'publish', $registration_layout->post_status, 'Registration layout should be published' );
277+
$this->assertEquals( 'publish', $custom_access_layout->post_status, 'Custom access layout should be published' );
276278
}
277279

278280
/**

0 commit comments

Comments
 (0)