Cleanup tests

1.10.x
Yannick Warnier 10 years ago
parent 98639c1141
commit bd76794003
  1. 61
      tests/phpunit/classes/AddCourseToSessionTest.lib.php
  2. 55
      tests/phpunit/classes/AddManySessionToCategoryFunctionsTest.lib.php

@ -1,61 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Requires
*/
require_once __DIR__.'/../../../main/inc/lib/xajax/xajax.inc.php';
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:43:47.
*/
class AddCourseToSessionTest extends PHPUnit_Framework_TestCase
{
/**
* @var AddCourseToSession
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
require_once dirname(__FILE__).'/../../../main/inc/global.inc.php';
require_once dirname(__FILE__).'/../../../main/inc/lib/database.lib.php';
$this->object = new AddCourseToSession;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* Generated from @assert ('abc', 'single') !== null.
*
* @covers AddCourseToSession::search_courses
*/
public function testSearch_courses2()
{
$this->assertNotSame(
null,
$this->object->search_courses('abc', 'single')
);
}
/**
* Generated from @assert ('abc', 'multiple') !== null.
*
* @covers AddCourseToSession::search_courses
*/
public function testSearch_courses3()
{
$this->assertNotSame(
null,
$this->object->search_courses('abc', 'multiple')
);
}
}

@ -1,55 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 01:03:12.
*/
class AddManySessionToCategoryFunctionsTest extends PHPUnit_Framework_TestCase
{
/**
* @var AddManySessionToCategoryFunctions
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
require_once dirname(__FILE__).'/../../../main/inc/global.inc.php';
$this->object = new AddManySessionToCategoryFunctions;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* Generated from @assert () !== ''.
*
* @covers AddManySessionToCategoryFunctions::search_courses
*/
public function testSearch_courses()
{
$this->assertNotSame(
'',
$this->object->search_courses()
);
}
/**
* Generated from @assert ('abc','single') !== ''.
*
* @covers AddManySessionToCategoryFunctions::search_courses
*/
public function testSearch_courses2()
{
$this->assertNotSame(
'',
$this->object->search_courses('abc','single')
);
}
}
Loading…
Cancel
Save