From c13d5c35134fbdb637d32eaf721d90e0c3889739 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 17 Jan 2010 19:24:48 -0800 Subject: Helper class for common test methods (like creating albums, photos, etc). --- modules/gallery_unit_test/helpers/test.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/gallery_unit_test/helpers/test.php (limited to 'modules/gallery_unit_test') diff --git a/modules/gallery_unit_test/helpers/test.php b/modules/gallery_unit_test/helpers/test.php new file mode 100644 index 00000000..30a87807 --- /dev/null +++ b/modules/gallery_unit_test/helpers/test.php @@ -0,0 +1,30 @@ +type = "album"; + $album->parent_id = $parent ? $parent->id : 1; + $album->name = "test_$rand"; + return $album->save(); + } +} -- cgit v1.2.3