diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-01-06 16:34:38 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-06 16:34:38 +0000 |
commit | e3d30763dabdf12f961ed3d1d7cf4eaee44c65a9 (patch) | |
tree | ed3d493e8423ad9ccbde5e8e199e65164820e70f /tests/unit/includes/AccountTest.php | |
parent | 6252340804bee66736e49de4bdc08755510f1c70 (diff) | |
download | volse-hubzilla-e3d30763dabdf12f961ed3d1d7cf4eaee44c65a9.tar.gz volse-hubzilla-e3d30763dabdf12f961ed3d1d7cf4eaee44c65a9.tar.bz2 volse-hubzilla-e3d30763dabdf12f961ed3d1d7cf4eaee44c65a9.zip |
tests: Integrate the DB in "unit" tests.
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']); + } +} |