aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Model/AccountTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/Model/AccountTest.php')
-rw-r--r--tests/unit/Model/AccountTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/Model/AccountTest.php b/tests/unit/Model/AccountTest.php
index 1da1ab87b..f9b126fa0 100644
--- a/tests/unit/Model/AccountTest.php
+++ b/tests/unit/Model/AccountTest.php
@@ -37,4 +37,13 @@ class AccountTest extends UnitTestCase {
public function test_get_total_number_of_accounts(): void {
$this->assertEquals(count($this->fixtures['account']), Account::count());
}
+
+ /**
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
+ */
+ public function test_construct_account_with_invalid_id(): void {
+ $this->expectException(\TypeError::class);
+
+ $account = new Account(['account_id' => 'neverwhere']);
+ }
}