We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3ccb64 commit 3ba5593Copy full SHA for 3ba5593
1 file changed
tests/Database/Base.php
@@ -1680,4 +1680,15 @@ public function testGetIndexLimit()
1680
{
1681
$this->assertEquals(61, $this->getDatabase()->getIndexLimit());
1682
}
1683
+
1684
+ public function testGetId()
1685
+ {
1686
+ $this->assertEquals(13, strlen($this->getDatabase()->getId()));
1687
+ $this->assertEquals(13, strlen($this->getDatabase()->getId(0)));
1688
+ $this->assertEquals(13, strlen($this->getDatabase()->getId(-1)));
1689
+ $this->assertEquals(23, strlen($this->getDatabase()->getId(10)));
1690
1691
+ // ensure two sequential calls to getId do not give the same result
1692
+ $this->assertNotEquals($this->getDatabase()->getId(10), $this->getDatabase()->getId(10));
1693
+ }
1694
0 commit comments