function testCurrentUrl() { $url = add_query_arg('foo', 'bar', home_url('baz')); $this->go_to($url); $this->assertSame(user_switching::current_url(), $url); }