Changeset 9561 for trunk/tests/phpunit/testcases/routing/anonymous.php
- Timestamp:
- 02/27/2015 03:00:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/routing/anonymous.php
r8958 r9561 4 4 */ 5 5 class BP_Tests_Routing_Anonymous extends BP_UnitTestCase { 6 protected $old_current_user = 0;7 8 public function setUp() {9 parent::setUp();10 11 $this->old_current_user = get_current_user_id();12 $this->set_current_user( 0 );13 }14 15 public function tearDown() {16 parent::tearDown();17 $this->set_current_user( $this->old_current_user );18 }19 20 6 function test_wordpress_page() { 21 7 $this->go_to( '/' );
Note: See TracChangeset
for help on using the changeset viewer.