public function testGetUserIdByUsername() { $app = $this->getApp(); $handler = new UserHandler($app); $result = $handler->getUserId('admin'); $this->assertSame(1, $result); }