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:
parent
e14ba56394
commit
7dd31a16d9
3 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ final class PhabricatorChatLogChannelQuery
|
|||
}
|
||||
|
||||
public function getQueryApplicationClass() {
|
||||
return 'PhabricatorApplicationChatlog';
|
||||
return 'PhabricatorApplicationChatLog';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ final class PhabricatorChatLogQuery
|
|||
}
|
||||
|
||||
public function getQueryApplicationClass() {
|
||||
return 'PhabricatorApplicationChatlog';
|
||||
return 'PhabricatorApplicationChatLog';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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}'");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue