[pLog-svn] r5403 - plog/branches/lifetype-1.2/class/test/tests/data/validator
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun May 13 07:05:16 EDT 2007
Author: oscar
Date: 2007-05-13 07:05:16 -0400 (Sun, 13 May 2007)
New Revision: 5403
Modified:
plog/branches/lifetype-1.2/class/test/tests/data/validator/blognamevalidator_test.class.php
Log:
Fixed one of the tests
Modified: plog/branches/lifetype-1.2/class/test/tests/data/validator/blognamevalidator_test.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/test/tests/data/validator/blognamevalidator_test.class.php 2007-05-13 10:10:12 UTC (rev 5402)
+++ plog/branches/lifetype-1.2/class/test/tests/data/validator/blognamevalidator_test.class.php 2007-05-13 11:05:16 UTC (rev 5403)
@@ -36,8 +36,9 @@
// blog names starting with 'a' and ending with 'b'
$forbiddenBlognames = $config->setValue( "forbidden_blognames", "^a.*" );
- $this->assertFalse( $this->b->validate( "a-this should not work" ), "A forbidden blogname should not be accepted as valid!" );
- $this->assertTrue( $this->b->validate( "-this should work" ), "A valid blogname was not accepted as valid!" );
+ $b = new BlogNameValidator();
+ $this->assertFalse( $b->validate( "a-this should not work" ), "A forbidden blogname should not be accepted as valid!" );
+ $this->assertTrue( $b->validate( "-this should work" ), "A valid blogname was not accepted as valid!" );
}
/**
More information about the pLog-svn
mailing list