Changeset 18790 for branches/version-2_5-dev/test
- Timestamp:
- 2010/08/24 14:58:32 (14 years ago)
- bzr:base-revision:
- ohkouchi@loop-az.jp-20100820090626-dkyj2ngdh7vklaow
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/class/SC_Query.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_Query.php
data/class/db/SC_DB_DBFactory.php 15123@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fdb%2FSC_DB_DBFactory.php
data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php 15123@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fdb%2Fdbfactory%2FSC_DB_DBFactory_MYSQL.php
data/class/db/dbfactory/SC_DB_DBFactory_PGSQL.php 15123@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fdb%2Fdbfactory%2FSC_DB_DBFactory_PGSQL.php
data/class/helper/SC_Helper_DB.php 15176@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fhelper%2FSC_Helper_DB.php
data/class/helper/SC_Helper_Session.php 15277@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fhelper%2FSC_Helper_Session.php
html/install/index.php 16809@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Findex.php
test/class/SC_Query_Test.php sc_query_test.php-20100803024127-ljzonih8f5jpan9o-1
test/class/helper/SC_Helper_DB_Test.php 15242@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Ftest%2Fclass%2Fhelper%2FSC_Helper_DB_Test.php- bzr:mapping-version:
- v4
- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20100824055828-2oy1qb3wcp85i76l
- bzr:revno:
- 2273
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:text-parents:
data/class/SC_Query.php ohkouchi@loop-az.jp-20100819104758-beubop5hq0pwdqhx
data/class/helper/SC_Helper_Session.php ohkouchi@loop-az.jp-20100614082857-g3n9wn9zakpc7a0m
html/install/index.php ohkouchi@loop-az.jp-20100819104758-beubop5hq0pwdqhx
test/class/SC_Query_Test.php ohkouchi@loop-az.jp-20100803111301-u8ph4za35y4il0dh
test/class/helper/SC_Helper_DB_Test.php ohkouchi@loop-az.jp-20100726081655-tqxqwy02bxqhswcu- bzr:timestamp:
- 2010-08-24 14:58:28.038000107 +0900
- bzr:user-agent:
- bzr2.1.2+bzr-svn1.0.2
- svn:original-date:
- 2010-08-24T05:58:28.038000Z
- Location:
- branches/version-2_5-dev/test/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/test/class/SC_Query_Test.php
r18773 r18790 48 48 function tearDown() { 49 49 $this->objQuery->rollback(); 50 // MySQL では CREATE TABLE がロールバックされないので DROP TABLE を行う 51 $this->dropTestTable(); 50 52 $this->objQuery = null; 51 53 } … … 217 219 218 220 $this->verify(); 221 } 222 223 function testListTables() { 224 $tables = $this->objQuery->listTables(); 225 $this->assertTrue(in_array("mtb_zip", $tables)); 226 } 227 228 function testListSequences() { 229 $sequences = $this->objQuery->listSequences(); 230 $this->assertTrue(in_array("dtb_products_product_id", $sequences)); 231 } 232 233 function testListTableFields() { 234 $this->expected = array("id", "name", "rank", "remarks"); 235 $this->actual = $this->objQuery->listTableFields("mtb_constants"); 236 $this->verify(); 237 } 238 239 function testListTableIndexes() { 240 $indexes = $this->objQuery->listTableIndexes("dtb_mobile_kara_mail"); 241 $this->assertTrue(in_array("dtb_mobile_kara_mail_create_date_key", $indexes)); 219 242 } 220 243 … … 229 252 } 230 253 254 function dropTestTable() { 255 return $this->objQuery->query("DROP TABLE test_table"); 256 } 257 231 258 function setTestData($column1, $column2, $column3) { 232 259 $fields_values = array($column1, $column2, $column3); -
branches/version-2_5-dev/test/class/helper/SC_Helper_DB_Test.php
r18763 r18790 36 36 37 37 /** 38 * sfTableExists() のテストケース.39 */40 function testSfTableExists() {41 $objDb = new SC_Helper_DB_Ex();42 $this->assertEquals(true, $objDb->sfTabaleExists("mtb_zip"));43 }44 45 /**46 38 * sfColumnExists() のテストケース. 47 39 */
Note: See TracChangeset
for help on using the changeset viewer.