diff options
Diffstat (limited to 'tests/unit/includes/AccountTest.php')
-rw-r--r-- | tests/unit/includes/AccountTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/includes/AccountTest.php b/tests/unit/includes/AccountTest.php new file mode 100644 index 000000000..d123a0c70 --- /dev/null +++ b/tests/unit/includes/AccountTest.php @@ -0,0 +1,12 @@ +<?php +/** + * Tests for account handling helper functions. + */ + +class AccountTest extends Zotlabs\Tests\Unit\UnitTestCase { + public function test_get_account_by_id_returns_existing_account() { + $account = get_account_by_id(42); + $this->assertNotFalse($account); + $this->assertEquals($this->fixtures['account'][0]['account_email'], $account['account_email']); + } +} |