public function setUp()
 {
     parent::setUp();
     $this->defaultUsername = Security::default_admin_username();
     $this->defaultPassword = Security::default_admin_password();
     Security::clear_default_admin();
     Security::setDefaultAdmin('admin', 'password');
 }
 public function testFindAnAdministratorWithoutDefaultAdmin()
 {
     // Clear default admin
     Security::clear_default_admin();
     $adminMembers = Permission::get_members_by_permission('ADMIN');
     $this->assertEquals(0, $adminMembers->count());
     $admin = Security::findAnAdministrator();
     $this->assertInstanceOf('SilverStripe\\Security\\Member', $admin);
     $this->assertTrue(Permission::checkMember($admin, 'ADMIN'));
     // User should be blank
     $this->assertEmpty($admin->Email);
     $this->assertEmpty($admin->Password);
 }