3 final class PhabricatorInfrastructureTestCase
extends PhabricatorTestCase
{
5 protected function getPhabricatorTestCaseConfiguration() {
7 self
::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES
=> true,
11 public function testApplicationsInstalled() {
12 $all = PhabricatorApplication
::getAllApplications();
13 $installed = PhabricatorApplication
::getAllInstalledApplications();
18 pht('In test cases, all applications should default to installed.'));
21 public function testRejectMySQLNonUTF8Queries() {
22 $table = new HarbormasterScratchTable();
23 $conn_r = $table->establishConnection('w');
25 $snowman = "\xE2\x98\x83";
26 $invalid = "\xE6\x9D";
28 qsprintf($conn_r, 'SELECT %B', $snowman);
29 qsprintf($conn_r, 'SELECT %s', $snowman);
30 qsprintf($conn_r, 'SELECT %B', $invalid);
34 qsprintf($conn_r, 'SELECT %s', $invalid);
35 } catch (AphrontCharacterSetQueryException
$ex) {
39 $this->assertTrue($caught instanceof AphrontCharacterSetQueryException
);