Skip to content

Commit 28c36a3

Browse files
author
Iulian Masar
committed
added test
1 parent ad6debc commit 28c36a3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/Cases/ReportsV2Test.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ public function test_Reports_Create_CollectedFees()
2222
$this->assertSame($created->Status, "PENDING");
2323
}
2424

25+
public function test_Reports_Create_UserWalletTransactions()
26+
{
27+
$report = new Report();
28+
$report->ReportType = "USER_WALLET_TRANSACTIONS";
29+
$report->DownloadFormat = "CSV";
30+
$report->AfterDate = 1740787200;
31+
$report->BeforeDate = 1743544740;
32+
$created = $this->_api->ReportsV2->Create($report);
33+
34+
$this->assertNotNull($created);
35+
$this->assertNotNull($created->Id);
36+
$this->assertSame($created->ReportType, "USER_WALLET_TRANSACTIONS");
37+
$this->assertSame($created->Status, "PENDING");
38+
}
39+
2540
public function test_Reports_Get()
2641
{
2742
$report = $this->getNewReportInstance();

0 commit comments

Comments
 (0)