~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/gd/test/phpunit/AdminGdControllerTest.class

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * $RCSfile: AdminGdControllerTest.class,v $
4
4
 *
5
5
 * Gallery - a web based photo album viewer and editor
6
 
 * Copyright (C) 2000-2005 Bharat Mediratta
 
6
 * Copyright (C) 2000-2006 Bharat Mediratta
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
9
9
 * it under the terms of the GNU General Public License as published by
20
20
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
21
21
 */
22
22
/**
23
 
 * @version $Revision: 1.8 $ $Date: 2005/08/23 03:49:43 $
 
23
 * @version $Revision: 1.9 $ $Date: 2006/01/10 04:40:12 $
24
24
 * @package Gd
25
25
 * @subpackage PHPUnit
26
26
 * @author Ernesto Baschny <ernst@baschny.de>
41
41
        parent::setUp();
42
42
 
43
43
        $ret = $this->_markPluginParametersForCleanup('module', 'gd');
44
 
        if ($ret->isError()) {
 
44
        if ($ret) {
45
45
            print $ret->getAsHtml();
46
46
            return $this->failWithStatus($ret->wrap(__FILE__, __LINE__));
47
47
        }
50
50
 
51
51
    function testSaveGoodPath() {
52
52
        global $gallery;
53
 
        $platform = $gallery->getPlatform();
 
53
        $platform =& $gallery->getPlatform();
54
54
        $slash = $platform->getDirectorySeparator();
55
55
 
56
56
        /* Use valid inputs */
66
66
                            $results);
67
67
 
68
68
        /* Verify the settings went in properly */
69
 
        $this->assertEquals(array(GalleryStatus::success(), '12'),
 
69
        $this->assertEquals(array(null, '12'),
70
70
                            GalleryCoreApi::getPluginParameter('module', 'gd', 'jpegQuality'));
71
71
    }
72
72