1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

Fix chatlog application query integration

Summary: `class_exists()` is case-insensitive, but `PhabricatorApplication::getByClass()` is not.

Test Plan: Fixed unit test to fail, then fixed code to pass unit test.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7379
This commit is contained in:
epriestley 2013-10-22 13:47:47 -07:00
parent e14ba56394
commit 7dd31a16d9
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ final class PhabricatorChatLogChannelQuery
}
public function getQueryApplicationClass() {
return 'PhabricatorApplicationChatlog';
return 'PhabricatorApplicationChatLog';
}
}

View file

@ -56,7 +56,7 @@ final class PhabricatorChatLogQuery
}
public function getQueryApplicationClass() {
return 'PhabricatorApplicationChatlog';
return 'PhabricatorApplicationChatLog';
}
}

View file

@ -222,7 +222,7 @@ final class PhabricatorPolicyTestCase extends PhabricatorTestCase {
}
$this->assertEqual(
true,
class_exists($class),
(bool)PhabricatorApplication::getByClass($class),
"Application class '{$class}' for query '{$qclass}'");
}
}