This commit is contained in:
Romain Neutron
2012-04-14 12:18:29 +02:00
parent 855fd91081
commit cc42055f4d
8 changed files with 131 additions and 194 deletions

View File

@@ -2,10 +2,6 @@
require_once __DIR__ . '/PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
/**
* Test class for searchEngine_options.
* Generated by PHPUnit on 2012-01-11 at 15:13:53.
*/
class searchEngine_optionsTest extends PhraseanetPHPUnitAuthenticatedAbstract
{
@@ -14,24 +10,11 @@ class searchEngine_optionsTest extends PhraseanetPHPUnitAuthenticatedAbstract
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
$this->object = new searchEngine_options();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
}
public function testSet_locale()
{
$locale = 'BABA';

View File

@@ -2,10 +2,6 @@
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for setup.
* Generated by PHPUnit on 2011-07-06 at 18:33:21.
*/
class setupTest extends PhraseanetPHPUnitAbstract
{
@@ -200,4 +196,3 @@ class setupTest extends PhraseanetPHPUnitAbstract
}
?>

View File

@@ -2,10 +2,6 @@
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for sphinxrt.
* Generated by PHPUnit on 2011-07-06 at 18:31:37.
*/
class sphinxrtTest extends PhraseanetPHPUnitAbstract
{
@@ -65,5 +61,3 @@ class sphinxrtTest extends PhraseanetPHPUnitAbstract
}
}
?>

View File

@@ -2,10 +2,6 @@
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for thesaurus.
* Generated by PHPUnit on 2011-07-06 at 18:30:03.
*/
class thesaurusTest extends PhraseanetPHPUnitAbstract
{

View File

@@ -2,10 +2,6 @@
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for unicode.
* Generated by PHPUnit on 2011-05-27 at 16:32:47.
*/
class unicodeTest extends PhraseanetPHPUnitAbstract
{
@@ -37,7 +33,6 @@ class unicodeTest extends PhraseanetPHPUnitAbstract
$this->assertEquals('PeTARDS', $this->object->remove_nonazAZ09('PéTARDS'));
}
public function testRemove_first_digits()
{
$this->assertEquals('', $this->object->remove_first_digits('123456789'));

View File

@@ -1,10 +1,7 @@
<?php
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for random.
* Generated by PHPUnit on 2011-05-27 at 18:41:53.
*/
class unitTestsTest extends PhraseanetPHPUnitAbstract
{

View File

@@ -1,30 +1,10 @@
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2010 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
/**
*
* @package
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class userTest extends PhraseanetPHPUnitAbstract
{
public function testMail()
{
$this->assertFalse(User_Adapter::get_usr_id_from_email(null));
@@ -56,4 +36,5 @@ class userTest extends PhraseanetPHPUnitAbstract
}
$this->assertFalse(User_Adapter::get_usr_id_from_email(null));
}
}

View File

@@ -2,10 +2,6 @@
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for uuid.
* Generated by PHPUnit on 2011-05-27 at 14:58:30.
*/
class uuidTest extends PhraseanetPHPUnitAbstract
{