diff options
author | Vasudev Kamath <kamathvasudev@gmail.com> | 2012-04-27 22:43:26 +0530 |
---|---|---|
committer | Vasudev Kamath <kamathvasudev@gmail.com> | 2012-04-27 22:43:26 +0530 |
commit | 214ec91a3f2c5fec6cced93f669b3a9725f0e40a (patch) | |
tree | d05fd4c7e65cc89cf46d8347a2d0e6df135ed864 /tests | |
parent | f1d84c10458986a0a014f844e784617401764b29 (diff) | |
parent | 4b92e3543c9af26e590cfecf561ff7483e66e6c9 (diff) | |
download | volse-hubzilla-214ec91a3f2c5fec6cced93f669b3a9725f0e40a.tar.gz volse-hubzilla-214ec91a3f2c5fec6cced93f669b3a9725f0e40a.tar.bz2 volse-hubzilla-214ec91a3f2c5fec6cced93f669b3a9725f0e40a.zip |
Merge branch 'master' of git://github.com/friendica/friendica
Diffstat (limited to 'tests')
-rw-r--r-- | tests/autoname_test.php | 7 | ||||
-rw-r--r-- | tests/get_tags_test.php | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/autoname_test.php b/tests/autoname_test.php index c83e4a471..702e05bef 100644 --- a/tests/autoname_test.php +++ b/tests/autoname_test.php @@ -67,7 +67,10 @@ class AutonameTest extends PHPUnit_Framework_TestCase { $autoname2=autoname(1);
$this->assertEquals(1, count($autoname2)); - - $this->assertFalse($autoname1==$autoname2);
+ + // The following test is problematic, with only 26 possibilities + // generating the same thing twice happens often aka + // birthday paradox +// $this->assertFalse($autoname1==$autoname2);
} }
\ No newline at end of file diff --git a/tests/get_tags_test.php b/tests/get_tags_test.php index e5c6485de..40f016747 100644 --- a/tests/get_tags_test.php +++ b/tests/get_tags_test.php @@ -202,8 +202,8 @@ class GetTagsTest extends PHPUnit_Framework_TestCase { } $this->assertEquals("cid:15", $inform); - $this->assertEquals("@[url=http://justatest.de]Mike Lastname[/url],#[url=baseurl/search?search=test%20case]test case[/url]", $str_tags); - $this->assertEquals("hi @[url=http://justatest.de]Mike Lastname[/url] This is a #[url=baseurl/search?search=test%20case]test case[/url]", $text); + $this->assertEquals("@[url=http://justatest.de]Mike Lastname[/url],#[url=baseurl/search?tag=test%20case]test case[/url]", $str_tags); + $this->assertEquals("hi @[url=http://justatest.de]Mike Lastname[/url] This is a #[url=baseurl/search?tag=test%20case]test case[/url]", $text); }
|