mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Added unit tests for Table, TableTag and TablesTag classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8566 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d248d70773
commit
7112d518c8
7 changed files with 178 additions and 4 deletions
42
test-phpUnit/classes/db/queryparts/table/TableTest.php
Normal file
42
test-phpUnit/classes/db/queryparts/table/TableTest.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Test class for Table.
|
||||
*/
|
||||
class TableTest extends CubridTest
|
||||
{
|
||||
/**
|
||||
* @var Table
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new Table('"xe_member"', '"m"');
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
public function testToString()
|
||||
{
|
||||
$this->assertEquals('"xe_member" as "m"', $this->object->toString());
|
||||
}
|
||||
|
||||
public function testGetName()
|
||||
{
|
||||
$this->assertEquals('"xe_member"', $this->object->getName());
|
||||
}
|
||||
|
||||
public function testGetAlias()
|
||||
{
|
||||
$this->assertEquals('"m"', $this->object->getAlias());
|
||||
}
|
||||
|
||||
public function testIsJoinTable()
|
||||
{
|
||||
$this->assertEquals(false, $this->object->isJoinTable());
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue