File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
tests/unit-tests/content-gate Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments