Browse Source

fix test for img in sanitize test

pull/39/head v1.2.2
Aaron Parecki 7 years ago
parent
commit
a8acfd2a43
No known key found for this signature in database GPG Key ID: 276C2817346D6056
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      controllers/Parse.php
  2. +1
    -1
      tests/SanitizeTest.php

+ 1
- 1
controllers/Parse.php View File

@ -10,7 +10,7 @@ class Parse {
public $mc;
private $_cacheTime = 120;
private $_pretty = false;
private static $_version = '1.2.1';
private static $_version = '1.2.2';
public static function useragent() {
return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 XRay/'.self::$_version.' ('.\Config::$base.')';

+ 1
- 1
tests/SanitizeTest.php View File

@ -36,7 +36,7 @@ class SanitizeTest extends PHPUnit_Framework_TestCase {
$this->assertContains('<del>delete</del>,', $html, '<del> missing');
$this->assertContains('<em>emphasis</em>,', $html, '<em> missing');
$this->assertContains('<i>italics</i>,', $html, '<i> missing');
$this->assertContains('<img alt="images are allowed" src="http://sanitize.example/example.jpg" />', $html, '<img> missing');
$this->assertContains('<img src="http://sanitize.example/example.jpg" alt="images are allowed" />', $html, '<img> missing');
$this->assertContains('<q>inline quote</q>,', $html, '<q> missing');
$this->assertContains('<strike>strikethrough</strike>,', $html, '<strike> missing');
$this->assertContains('<strong>strong text</strong>,', $html, '<strong> missing');

Loading…
Cancel
Save