mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 09:16:47 +00:00
test Disabled
This commit is contained in:
@@ -30,6 +30,23 @@ namespace ripple {
|
||||
class Sponsor_test : public beast::unit_test::suite
|
||||
{
|
||||
public:
|
||||
void
|
||||
testDisabled()
|
||||
{
|
||||
testcase("Disabled");
|
||||
using namespace test::jtx;
|
||||
Env env{*this, testable_amendments() - featureSponsor};
|
||||
Account const alice("alice");
|
||||
Account const sponsor("sponsor");
|
||||
env.fund(XRP(10000), alice, sponsor);
|
||||
|
||||
env(noop(alice),
|
||||
fee(XRP(1)),
|
||||
sponsor::as(sponsor),
|
||||
sponsor::sig(sponsor),
|
||||
ter(temDISABLED));
|
||||
}
|
||||
|
||||
void
|
||||
testSponsorFee()
|
||||
{
|
||||
@@ -423,6 +440,7 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
testDisabled();
|
||||
testSponsorFee();
|
||||
testSponsorAccount();
|
||||
testSponsorReserve();
|
||||
|
||||
Reference in New Issue
Block a user