Legacy Branch Unit Tests: JModel*

29 views
Skip to first unread message

Donald Gilbert

unread,
Oct 10, 2012, 7:13:02 PM10/10/12
to joomla-de...@googlegroups.com
I opted to complete the unit tests for JModel*, since I had already completed the tests for JModelLegacy and thought the rest would be similar. However, it seems that most of the tests require some sort of database interaction. (Just think of all the db specific things handled in JModelAdmin concerning checkin and publish, etc...)

Does anyone have experience creating mock db stuff for phpunit? Or maybe someone could think of another way to accomlish this that I'm not seeing? Any direction or thoughts would be helpful.


Also, have you picked what Unit Tests you're going to complete for the legacy suite? Come where the party is at - https://docs.google.com/a/electriceasel.com/spreadsheet/ccc?key=0AqKlGgpGs6oOdDlYa21qN3R6ZllLNV83ZllnSUJZZ0E#gid=0

Elin Waring

unread,
Oct 11, 2012, 10:14:48 AM10/11/12
to joomla-de...@googlegroups.com
There are a bunch of examples of using data in the tests for JAccess and JTableNested.

Elin

Donald Gilbert

unread,
Oct 11, 2012, 11:06:14 AM10/11/12
to joomla-de...@googlegroups.com
Thanks Elin, I'll have to look at that.
Reply all
Reply to author
Forward
0 new messages