Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15395600
D17691.id42545.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D17691.id42545.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -3428,6 +3428,7 @@
'PhabricatorPhortuneContentSource' => 'applications/phortune/contentsource/PhabricatorPhortuneContentSource.php',
'PhabricatorPhortuneManagementInvoiceWorkflow' => 'applications/phortune/management/PhabricatorPhortuneManagementInvoiceWorkflow.php',
'PhabricatorPhortuneManagementWorkflow' => 'applications/phortune/management/PhabricatorPhortuneManagementWorkflow.php',
+ 'PhabricatorPhortuneTestCase' => 'applications/phortune/__tests__/PhabricatorPhortuneTestCase.php',
'PhabricatorPhragmentApplication' => 'applications/phragment/application/PhabricatorPhragmentApplication.php',
'PhabricatorPhrequentApplication' => 'applications/phrequent/application/PhabricatorPhrequentApplication.php',
'PhabricatorPhrictionApplication' => 'applications/phriction/application/PhabricatorPhrictionApplication.php',
@@ -8679,6 +8680,7 @@
'PhabricatorPhortuneContentSource' => 'PhabricatorContentSource',
'PhabricatorPhortuneManagementInvoiceWorkflow' => 'PhabricatorPhortuneManagementWorkflow',
'PhabricatorPhortuneManagementWorkflow' => 'PhabricatorManagementWorkflow',
+ 'PhabricatorPhortuneTestCase' => 'PhabricatorTestCase',
'PhabricatorPhragmentApplication' => 'PhabricatorApplication',
'PhabricatorPhrequentApplication' => 'PhabricatorApplication',
'PhabricatorPhrictionApplication' => 'PhabricatorApplication',
diff --git a/src/applications/phortune/__tests__/PhabricatorPhortuneTestCase.php b/src/applications/phortune/__tests__/PhabricatorPhortuneTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/phortune/__tests__/PhabricatorPhortuneTestCase.php
@@ -0,0 +1,26 @@
+<?php
+
+final class PhabricatorPhortuneTestCase
+ extends PhabricatorTestCase {
+
+ protected function getPhabricatorTestCaseConfiguration() {
+ return array(
+ self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true,
+ );
+ }
+
+ public function testNewPhortuneAccount() {
+ $user = $this->generateNewTestUser();
+ $content_source = $this->newContentSource();
+
+ $accounts = PhortuneAccountQuery::loadAccountsForUser(
+ $user,
+ $content_source);
+
+ $this->assertEqual(
+ 1,
+ count($accounts),
+ pht('Creation of default account for users with no accounts.'));
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 17 2025, 8:18 AM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7708128
Default Alt Text
D17691.id42545.diff (2 KB)
Attached To
Mode
D17691: Add a failing test case for new Phortune account initialization
Attached
Detach File
Event Timeline
Log In to Comment