summaryrefslogtreecommitdiff
path: root/tests/unit/Data/SqlMap/SelectKeyTest.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
commit70e305a918fcf193009831d4e89aa8c386df3dc4 (patch)
tree8cc49f253f29636ddd623aa2c2b98835300604f0 /tests/unit/Data/SqlMap/SelectKeyTest.php
parent55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff)
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Data/SqlMap/SelectKeyTest.php')
-rw-r--r--tests/unit/Data/SqlMap/SelectKeyTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/Data/SqlMap/SelectKeyTest.php b/tests/unit/Data/SqlMap/SelectKeyTest.php
index a0554aef..47d305f3 100644
--- a/tests/unit/Data/SqlMap/SelectKeyTest.php
+++ b/tests/unit/Data/SqlMap/SelectKeyTest.php
@@ -38,15 +38,15 @@ class SelectKeyTest extends BaseCase
$key = $this->sqlmap->Insert("InsertLineItemPostKey", $item);
- $this->assertIdentical(99, $key);
- $this->assertIdentical(99, $item->getId());
+ $this->assertSame(99, $key);
+ $this->assertSame(99, $item->getId());
$param["Order_ID"] = 9;
$param["LineItem_ID"] =10;
$testItem = $this->sqlmap->QueryForObject("GetSpecificLineItem", $param);
$this->assertNotNull($testItem);
- $this->assertIdentical(10, $testItem->getId());
+ $this->assertSame(10, $testItem->getId());
$this->initScript('line-item-init.sql');
}
@@ -69,8 +69,8 @@ class SelectKeyTest extends BaseCase
$key = $this->sqlmap->Insert("InsertLineItemPreKey", $item);
- $this->assertIdentical(99, $key);
- $this->assertIdentical(99, $item->getId());
+ $this->assertSame(99, $key);
+ $this->assertSame(99, $item->getId());
$param["Order_ID"] = 9;
$param["LineItem_ID"] = 99;
@@ -78,7 +78,7 @@ class SelectKeyTest extends BaseCase
$testItem = $this->sqlmap->QueryForObject("GetSpecificLineItem", $param);
$this->assertNotNull($testItem);
- $this->assertIdentical(99, $testItem->getId());
+ $this->assertSame(99, $testItem->getId());
$this->initScript('line-item-init.sql');
}
@@ -103,7 +103,7 @@ class SelectKeyTest extends BaseCase
$key = $this->sqlmap->Insert("InsertLineItemNoKey", $item);
$this->assertNull($key);
- $this->assertIdentical(100, $item->getId());
+ $this->assertSame(100, $item->getId());
$param["Order_ID"] = 9;
$param["LineItem_ID"] = 100;
@@ -111,7 +111,7 @@ class SelectKeyTest extends BaseCase
$testItem = $this->sqlmap->QueryForObject("GetSpecificLineItem", $param);
$this->assertNotNull($testItem);
- $this->assertIdentical(100, $testItem->getId());
+ $this->assertSame(100, $testItem->getId());
$this->initScript('line-item-init.sql');
}