mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-01 11:50:28 +02:00
- Rename Duplicate to Unique, as the name of validator indicates what we want the input to be
- Enable flush to work when includes are renamed git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1597 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
class HTMLPurifier_ConfigSchema_Validator_DuplicateTest extends HTMLPurifier_ConfigSchema_ValidatorHarness
|
||||
class HTMLPurifier_ConfigSchema_Validator_UniqueTest extends HTMLPurifier_ConfigSchema_ValidatorHarness
|
||||
{
|
||||
|
||||
public function setup() {
|
||||
parent::setup();
|
||||
$this->validator = new HTMLPurifier_ConfigSchema_Validator_Duplicate();
|
||||
$this->validator = new HTMLPurifier_ConfigSchema_Validator_Unique();
|
||||
}
|
||||
|
||||
public function testValidateNamespace() {
|
@@ -19,15 +19,6 @@ class HTMLPurifier_ConfigSchemaTest extends HTMLPurifier_Harness
|
||||
$this->assertIdentical($this->schema->info_namespace, array(
|
||||
'http' => new HTMLPurifier_ConfigDef_Namespace($d)
|
||||
));
|
||||
|
||||
$this->expectError('Cannot redefine namespace');
|
||||
$this->schema->addNamespace('http', 'It is used to serve webpages.');
|
||||
|
||||
$this->expectError('Namespace name must be alphanumeric');
|
||||
$this->schema->addNamespace('ssh+http', 'This http is tunneled through SSH.');
|
||||
|
||||
$this->expectError('Description must be non-empty');
|
||||
$this->schema->addNamespace('ftp', null);
|
||||
}
|
||||
|
||||
function test_define() {
|
||||
|
Reference in New Issue
Block a user