@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a failing test case for new Phortune account initialization

Summary:
Ref T12451. Ref T12484. I think D17657 fixed this, but caused the bug in D17690. The fix for that causes this bug again.

Put a unit test on it. This test currently fails; I'll correct the bug in the next change.

Test Plan: Ran `arc unit`, saw a failure.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12484, T12451

Differential Revision: https://secure.phabricator.com/D17691

+28
+2
src/__phutil_library_map__.php
··· 3428 3428 'PhabricatorPhortuneContentSource' => 'applications/phortune/contentsource/PhabricatorPhortuneContentSource.php', 3429 3429 'PhabricatorPhortuneManagementInvoiceWorkflow' => 'applications/phortune/management/PhabricatorPhortuneManagementInvoiceWorkflow.php', 3430 3430 'PhabricatorPhortuneManagementWorkflow' => 'applications/phortune/management/PhabricatorPhortuneManagementWorkflow.php', 3431 + 'PhabricatorPhortuneTestCase' => 'applications/phortune/__tests__/PhabricatorPhortuneTestCase.php', 3431 3432 'PhabricatorPhragmentApplication' => 'applications/phragment/application/PhabricatorPhragmentApplication.php', 3432 3433 'PhabricatorPhrequentApplication' => 'applications/phrequent/application/PhabricatorPhrequentApplication.php', 3433 3434 'PhabricatorPhrictionApplication' => 'applications/phriction/application/PhabricatorPhrictionApplication.php', ··· 8679 8680 'PhabricatorPhortuneContentSource' => 'PhabricatorContentSource', 8680 8681 'PhabricatorPhortuneManagementInvoiceWorkflow' => 'PhabricatorPhortuneManagementWorkflow', 8681 8682 'PhabricatorPhortuneManagementWorkflow' => 'PhabricatorManagementWorkflow', 8683 + 'PhabricatorPhortuneTestCase' => 'PhabricatorTestCase', 8682 8684 'PhabricatorPhragmentApplication' => 'PhabricatorApplication', 8683 8685 'PhabricatorPhrequentApplication' => 'PhabricatorApplication', 8684 8686 'PhabricatorPhrictionApplication' => 'PhabricatorApplication',
+26
src/applications/phortune/__tests__/PhabricatorPhortuneTestCase.php
··· 1 + <?php 2 + 3 + final class PhabricatorPhortuneTestCase 4 + extends PhabricatorTestCase { 5 + 6 + protected function getPhabricatorTestCaseConfiguration() { 7 + return array( 8 + self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, 9 + ); 10 + } 11 + 12 + public function testNewPhortuneAccount() { 13 + $user = $this->generateNewTestUser(); 14 + $content_source = $this->newContentSource(); 15 + 16 + $accounts = PhortuneAccountQuery::loadAccountsForUser( 17 + $user, 18 + $content_source); 19 + 20 + $this->assertEqual( 21 + 1, 22 + count($accounts), 23 + pht('Creation of default account for users with no accounts.')); 24 + } 25 + 26 + }