Subsite::changeSubsite($id);//switch to main site (subsite ID zero)
$left=newLeftAndMain();
$this->assertTrue($left->canView(),"Admin user can view subsites LeftAndMain with id = '$id'");
$this->assertEquals($id,Subsite::currentSubsiteID(),"The current subsite has not been changed in the process of checking permissions for admin user.");