mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +01:00
Add assertions to no-assertions tests in phabricator/
Summary: Ref T4570. Add trivial assertions to tests which fail-by-exploding so we can fail tests with no assertions. Test Plan: Ran `arc unit --everything` with Arcanist patched to fail with no assertions. Reviewers: leebyron, btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T4570 Differential Revision: https://secure.phabricator.com/D8436
This commit is contained in:
parent
5e47f2a862
commit
0488ce73c4
4 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,8 @@ final class PhabricatorUserEditorTestCase extends PhabricatorTestCase {
|
||||||
$this->registerUser(
|
$this->registerUser(
|
||||||
'PhabricatorUserEditorTestCaseOK',
|
'PhabricatorUserEditorTestCaseOK',
|
||||||
'PhabricatorUserEditorTestCase@example.com');
|
'PhabricatorUserEditorTestCase@example.com');
|
||||||
|
|
||||||
|
$this->assertEqual(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRegistrationEmailInvalid() {
|
public function testRegistrationEmailInvalid() {
|
||||||
|
|
|
@ -16,6 +16,7 @@ final class PhabricatorInfrastructureTestCase
|
||||||
*/
|
*/
|
||||||
public function testEverythingImplemented() {
|
public function testEverythingImplemented() {
|
||||||
id(new PhutilSymbolLoader())->selectAndLoadSymbols();
|
id(new PhutilSymbolLoader())->selectAndLoadSymbols();
|
||||||
|
$this->assertEqual(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testApplicationsInstalled() {
|
public function testApplicationsInstalled() {
|
||||||
|
|
|
@ -17,6 +17,8 @@ final class AphrontIsolatedDatabaseConnectionTestCase
|
||||||
queryfx(
|
queryfx(
|
||||||
$this->newIsolatedConnection(),
|
$this->newIsolatedConnection(),
|
||||||
'INSERT INVALID SYNTAX');
|
'INSERT INVALID SYNTAX');
|
||||||
|
|
||||||
|
$this->assertEqual(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInsertGeneratesID() {
|
public function testInsertGeneratesID() {
|
||||||
|
@ -39,6 +41,8 @@ final class AphrontIsolatedDatabaseConnectionTestCase
|
||||||
public function testDeletePermitted() {
|
public function testDeletePermitted() {
|
||||||
$conn = $this->newIsolatedConnection();
|
$conn = $this->newIsolatedConnection();
|
||||||
queryfx($conn, 'DELETE');
|
queryfx($conn, 'DELETE');
|
||||||
|
|
||||||
|
$this->assertEqual(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testTransactionStack() {
|
public function testTransactionStack() {
|
||||||
|
|
|
@ -54,6 +54,7 @@ final class LiskIsolationTestCase extends PhabricatorTestCase {
|
||||||
// Expected, pass.
|
// Expected, pass.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->assertEqual(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testMagicMethods() {
|
public function testMagicMethods() {
|
||||||
|
|
Loading…
Reference in a new issue