1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/noalyss-6.9.0.0/unit-test/include/class_acc_balanceTest.php

75 lines
1.8 KiB
PHP
Raw Normal View History

2015-09-27 00:35:53 +02:00
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2014-10-31 at 20:33:22.
*/
class Acc_BalanceTest extends PHPUnit_Framework_TestCase
{
/**
* @var Acc_Balance
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
global $g_connection, $g_parameter;
$_REQUEST['gDossier']=DOSSIER;
$g_connection=new Database(DOSSIER);
$g_parameter=new Own($g_connection);
$this->object=new Acc_Balance($g_connection);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* @covers Acc_Balance::get_row
* @todo Implement testGet_row().
*/
public function testGet_row()
{
$this->object->get_row(1,200);
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'DATA : cannot be tested'
);
}
/**
* @covers Acc_Balance::filter_cat
* @todo Implement testFilter_cat().
*/
public function testFilter_cat()
{
$this->object->jrn=1;
$this->object->filter_cat(array());
$this->assertEquals($this->object->jrn,null);
$this->object->filter_cat(array('FIN'));
$this->assertEquals($this->object->jrn[0],2);
}
/**
* @covers Acc_Balance::test_me
* @todo Implement testTest_me().
*/
public function testTest_me()
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
}
}