There is a lot of weird code, it seems you don't understand how the tests are used. The problem is not from importing your appliance.
$ this-> assertTrue (true) will always return true. No need to declare a VideoviewTest.
, increment_timer, , , + 1:
function increment_timer($id = null){
return $id++;
}
App::import('Model', 'Videosview');
class VideosviewTestCase extends CakeTestCase {
var $fixtures = array('app.videosview');
function startTest() {
$this->Videosview =& ClassRegistry::init('Videosview');
}
function endTest() {
unset($this->Videosview);
ClassRegistry::flush();
}
function testIncrementTimer() {
$input = 1;
$this->assertTrue( $this->Videosview->increment_timer($input) == ($input+1), 'Should return 2' );
$this->assertFalse( $this->Videosview->increment_timer($input) == ($input+2), 'Should not return 3' );
$this->assertTrue( $this->Videosview->increment_timer($input) == ($input+2), 'Should return 2' );
}
}
, ,
