Remove unused function

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Better variable name

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Indent properly

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Improve queries

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Duplicate code

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Pass $db as a parameter

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Fix id of the input

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Unit tests for PMA_getPageIdsAndNames() and PMA_getHtmlForEditOrDeletePages()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Tests for PMA_getHtmlForPageSaveAs()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Tests for PMA_getHtmlForPageSaveAs()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Test for PMA_getPageName()

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Test for PMA_getFirstPage

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Resolve issues reported by Scrutinizer

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>
Merge pull request #1241 from kb-yashodha/ut

Unit tests