Approval Manager tester added
This commit is contained in:
36
build.xml
36
build.xml
@@ -20,6 +20,10 @@
|
|||||||
depends="prepare,copyapp"
|
depends="prepare,copyapp"
|
||||||
description=""/>
|
description=""/>
|
||||||
|
|
||||||
|
<target name="ice"
|
||||||
|
depends="copyapp_quick"
|
||||||
|
description=""/>
|
||||||
|
|
||||||
<target name="clean"
|
<target name="clean"
|
||||||
unless="clean.done"
|
unless="clean.done"
|
||||||
description="Cleanup build artifacts">
|
description="Cleanup build artifacts">
|
||||||
@@ -182,7 +186,39 @@
|
|||||||
<exec executable="${toolsdir}phpdox"/>
|
<exec executable="${toolsdir}phpdox"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="copyapp_quick"
|
||||||
|
description="Copy generated files to QA app">
|
||||||
|
|
||||||
|
<copy todir="${destination}" overwrite="true">
|
||||||
|
<fileset dir="${origin}">
|
||||||
|
<include name="**/*"/>
|
||||||
|
<exclude name="composer/**"/>
|
||||||
|
<exclude name="themecss/**"/>
|
||||||
|
<exclude name="themejs/**"/>
|
||||||
|
<exclude name="robo/**"/>
|
||||||
|
<exclude name="images/**"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<copy todir="${destination}" overwrite="true">
|
||||||
|
<fileset dir="${basedir}/core-ext">
|
||||||
|
<include name="**/*"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<copy todir="${destination}" overwrite="true">
|
||||||
|
<fileset dir="${basedir}/ext">
|
||||||
|
<include name="**/*"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<copy todir="${testdir}" overwrite="true">
|
||||||
|
<fileset dir="${basedir}/test">
|
||||||
|
<include name="**/*"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="copyapp"
|
<target name="copyapp"
|
||||||
description="Copy generated files to QA app">
|
description="Copy generated files to QA app">
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
<?php
|
|
||||||
if(!class_exists("TestTemplate")) {
|
|
||||||
include dirname(__FILE__).'/../TestTemplate.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
class FileServiceTest extends TestTemplate{
|
|
||||||
var $obj = null;
|
|
||||||
|
|
||||||
protected function setUp()
|
|
||||||
{
|
|
||||||
parent::setUp();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function testSample(){
|
|
||||||
$this->assertEquals(1, 1);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,6 @@ if(!class_exists("TestTemplate")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class LanguageManagerTest extends TestTemplate{
|
class LanguageManagerTest extends TestTemplate{
|
||||||
var $obj = null;
|
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
@@ -13,21 +12,11 @@ class LanguageManagerTest extends TestTemplate{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function testSample(){
|
public function testTran(){
|
||||||
$this->p("cat|".LanguageManager::tran('cat'));
|
$this->assertEquals('cat', LanguageManager::tran('cat'));
|
||||||
$this->p("cat|".LanguageManager::tran('cat'));
|
$this->assertEquals('solid', LanguageManager::tran('solid'));
|
||||||
|
$this->assertEquals('one file', LanguageManager::tran('one file'));
|
||||||
$this->p("solid|".LanguageManager::tran('solid'));
|
$this->assertEquals('2 files', LanguageManager::tran('2 files'));
|
||||||
$this->p("solid|".LanguageManager::tran('solid'));
|
$this->assertEquals('User Logged In now', LanguageManager::translateTnrText('User <t>Logged In</t> now'));
|
||||||
|
|
||||||
|
|
||||||
$this->p("one file|".LanguageManager::tran('one file'));
|
|
||||||
$this->p("2 files|".LanguageManager::tran('2 files'));
|
|
||||||
|
|
||||||
$string = "wert <t>Logged In</t> rrr";
|
|
||||||
|
|
||||||
$txt = LanguageManager::translateTnrText($string);
|
|
||||||
|
|
||||||
$this->p("Tx1:".$txt);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user