cvs: pear-core /tests/PEAR_Registry/api1_1 test_isAlias.phpt
| From: | Greg Beaver | Date: | Wed, 15 Dec 2004 02:37:28 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Registry/api1_1 test_isAlias.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-27409@lists.php.net to get a copy of this message | ||
cellog Tue Dec 14 21:37:28 2004 EDT
Modified files:
/pear-core/tests/PEAR_Registry/api1_1 test_isAlias.phpt
Log:
add test to see if updating a channel changes the alias
http://cvs.php.net/diff.php/pear-core/tests/PEAR_Registry/api1_1/test_isAlias.phpt?r1=1.1&r2=1.2&ty=u
Index: pear-core/tests/PEAR_Registry/api1_1/test_isAlias.phpt
diff -u pear-core/tests/PEAR_Registry/api1_1/test_isAlias.phpt:1.1
pear-core/tests/PEAR_Registry/api1_1/test_isAlias.phpt:1.2
--- pear-core/tests/PEAR_Registry/api1_1/test_isAlias.phpt:1.1 Tue Nov 16 23:01:35 2004
+++ pear-core/tests/PEAR_Registry/api1_1/test_isAlias.phpt Tue Dec 14 21:37:26 2004
@@ -34,6 +34,11 @@
$phpunit->assertTrue($ret, 'foo');
$ret = $reg->isAlias('test.test.test');
$phpunit->assertFalse($ret, 'test.test.test');
+// test for change of alias
+$ch->setAlias('bar');
+$reg->updateChannel($ch);
+$phpunit->assertFalse($reg->isAlias('foo'), 'foo alias after');
+$phpunit->assertTrue($reg->isAlias('bar'), 'bar alias after');
echo 'tests done';
?>
--EXPECT--