summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-01-05 22:44:53 +0100
committerAndrey Andreev <narf@devilix.net>2022-01-05 22:44:53 +0100
commite837d3589ba5c5da5daa58f69bdc14447c90bc51 (patch)
tree9b2fd6ec4f4d753b2c68f3f21ec626e1bd5eabb0 /tests/codeigniter/helpers
parent627f1058c1d72b267ab8ab441219198d6f2c24c6 (diff)
Drop some previously deprecated functionality
Diffstat (limited to 'tests/codeigniter/helpers')
-rw-r--r--tests/codeigniter/helpers/string_helper_test.php2
-rw-r--r--tests/codeigniter/helpers/url_helper_test.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/codeigniter/helpers/string_helper_test.php b/tests/codeigniter/helpers/string_helper_test.php
index 4f15909ff..f6d473a41 100644
--- a/tests/codeigniter/helpers/string_helper_test.php
+++ b/tests/codeigniter/helpers/string_helper_test.php
@@ -98,7 +98,7 @@ class String_helper_test extends CI_TestCase {
public function test_random_string()
{
$this->assertEquals(16, strlen(random_string('alnum', 16)));
- $this->assertEquals(32, strlen(random_string('unique', 16)));
+ $this->assertEquals(32, strlen(random_string('md5', 16)));
$this->assertEquals('string', gettype(random_string('numeric', 16)));
}
diff --git a/tests/codeigniter/helpers/url_helper_test.php b/tests/codeigniter/helpers/url_helper_test.php
index 5f936568b..1b295511e 100644
--- a/tests/codeigniter/helpers/url_helper_test.php
+++ b/tests/codeigniter/helpers/url_helper_test.php
@@ -21,7 +21,7 @@ class Url_helper_test extends CI_TestCase {
foreach ($words as $in => $out)
{
- $this->assertEquals($out, url_title($in, 'dash', TRUE));
+ $this->assertEquals($out, url_title($in, '-', TRUE));
}
}
@@ -41,7 +41,7 @@ class Url_helper_test extends CI_TestCase {
foreach ($words as $in => $out)
{
- $this->assertEquals($out, url_title($in, 'underscore'));
+ $this->assertEquals($out, url_title($in, '_'));
}
}