Page MenuHomePhabricator

Add a failing test case for new Phortune account initialization
ClosedPublic

Authored by epriestley on Apr 14 2017, 4:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 1:55 PM
Unknown Object (File)
Thu, Mar 28, 10:09 PM
Unknown Object (File)
Thu, Mar 28, 1:19 AM
Unknown Object (File)
Thu, Mar 28, 1:19 AM
Unknown Object (File)
Thu, Mar 28, 1:19 AM
Unknown Object (File)
Sun, Mar 24, 1:06 AM
Unknown Object (File)
Mar 18 2024, 5:21 AM
Unknown Object (File)
Feb 14 2024, 1:56 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Branch
phortune3
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 16476
Build 21938: Run Core Tests
Build 21937: arc lint + arc unit

Unit TestsFailed

TimeTest
15 msPhabricatorPhortuneTestCase::Unknown Unit Message ("")
EXCEPTION (PhabricatorApplicationTransactionValidationException): Validation errors: - You can not remove yourself as an account manager. #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/phortune/storage/PhortuneAccount.php(51): PhabricatorApplicationTransactionEditor->applyTransactions(Object(PhortuneAccount), Array)
17 msPhabricatorPhortuneTestCase::Unknown Unit Message ("")
EXCEPTION (PhabricatorApplicationTransactionValidationException): Validation errors: - You can not remove yourself as an account manager. #0 /core/data/drydock/workingcopy-85/repo/phabricator/src/applications/phortune/storage/PhortuneAccount.php(51): PhabricatorApplicationTransactionEditor->applyTransactions(Object(PhortuneAccount), Array)
1 msAlmanacNamesTestCase::Unknown Unit Message ("")
30 assertions passed.
0 msAlmanacServiceTypeTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAphrontHTTPSinkTestCase::Unknown Unit Message ("")
2 assertions passed.
View Full Test Results (2 Failed · 343 Passed)

Event Timeline

This revision is now accepted and ready to land.Apr 14 2017, 4:55 PM
This revision was automatically updated to reflect the committed changes.