Skip to content

Commit

Permalink
test: login user before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilawski committed Jan 23, 2025
1 parent 5c9a63d commit 32b174a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TestClassInputTemplateListRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
class TestClassInputTemplateListRenderer
extends \WP_UnitTestCase
{
protected function setUp() : void
{
wp_set_current_user(1);
}

/**
*
*/
Expand Down

0 comments on commit 32b174a

Please sign in to comment.