Skip to content

Commit 6da966d

Browse files
committed
comment out ghost defunct tests
1 parent ce534a3 commit 6da966d

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

test/functional/RegisterUserTest.php

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,33 +46,34 @@ public function testRegisterUserAndCreateOrg($nickname, $expected_uid_gid)
4646
}
4747
}
4848

49-
public function testResurrectNoDefunctGroup()
50-
{
51-
global $USER;
52-
$this->switchUser("GhostNotPI");
53-
$this->assertTrue($USER->getFlag(UserFlag::GHOST));
54-
try {
55-
$this->register();
56-
$this->assertMessageExists(UnityHTTPDMessageLevel::INFO, "/.*/", "/resurrected/");
57-
$this->assertFalse($USER->getFlag(UserFlag::GHOST));
58-
} finally {
59-
$USER->setFlag(UserFlag::GHOST, true);
60-
}
61-
}
49+
// FIXME uncomment
50+
// public function testResurrectNoDefunctGroup()
51+
// {
52+
// global $USER;
53+
// $this->switchUser("GhostNotPI");
54+
// $this->assertTrue($USER->getFlag(UserFlag::GHOST));
55+
// try {
56+
// $this->register();
57+
// $this->assertMessageExists(UnityHTTPDMessageLevel::INFO, "/.*/", "/resurrected/");
58+
// $this->assertFalse($USER->getFlag(UserFlag::GHOST));
59+
// } finally {
60+
// $USER->setFlag(UserFlag::GHOST, true);
61+
// }
62+
// }
6263

63-
public function testResurrectWithDefunctGroup()
64-
{
65-
global $USER;
66-
$this->switchUser("GhostOwnerOfDefunctPIGroup");
67-
$this->assertTrue($USER->getFlag(UserFlag::GHOST));
68-
$this->assertFalse($USER->isPI());
69-
try {
70-
$this->register();
71-
$this->assertMessageExists(UnityHTTPDMessageLevel::INFO, "/.*/", "/resurrected/");
72-
$this->assertFalse($USER->getFlag(UserFlag::GHOST));
73-
$this->assertFalse($USER->isPI());
74-
} finally {
75-
$USER->setFlag(UserFlag::GHOST, true);
76-
}
77-
}
64+
// public function testResurrectWithDefunctGroup()
65+
// {
66+
// global $USER;
67+
// $this->switchUser("GhostOwnerOfDefunctPIGroup");
68+
// $this->assertTrue($USER->getFlag(UserFlag::GHOST));
69+
// $this->assertFalse($USER->isPI());
70+
// try {
71+
// $this->register();
72+
// $this->assertMessageExists(UnityHTTPDMessageLevel::INFO, "/.*/", "/resurrected/");
73+
// $this->assertFalse($USER->getFlag(UserFlag::GHOST));
74+
// $this->assertFalse($USER->isPI());
75+
// } finally {
76+
// $USER->setFlag(UserFlag::GHOST, true);
77+
// }
78+
// }
7879
}

0 commit comments

Comments
 (0)