AudioDidact\DB\MySQLDAL::getUserByUsername
Gets a User from the database based on a username
Signature
public function getUserByUsername(string
$username )
Parameters
$username
—
string
Returns
- null|User
Errors/Exceptions
-
PDOException
Parent Implementation
Test Coverage
Information
- Coverage: 10/14 Lines (71.428571428571%)
- Tests: 10
- Passed: 10 (100%)
Tests
- [ PASSED ] — SQLiteTest::testAddUser
- [ PASSED ] — SQLiteTest::testUpdatePassword
- [ PASSED ] — SQLiteTest::testUpdateUser
- [ PASSED ] — SQLiteTest::testAddVideo
- [ PASSED ] — SQLiteTest::testUpdateVideo
- [ PASSED ] — SQLiteTest::testGetFeed
- [ PASSED ] — SQLiteTest::testGetFeedHistory
- [ PASSED ] — SQLiteTest::testGetPrunableVideos
- [ PASSED ] — SQLiteTest::testSetFeedText
- [ PASSED ] — SQLiteTest::testUpdateUserEmailPasswordCodes