Make WordPress Core

Changeset 49701 for trunk


Ignore:
Timestamp:
11/27/2020 12:50:11 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Tests: Test that sanitize_title_with_dashes() strips HTML tags.

sanitize_title() already has the same test in its own file.

Props pbearne.
Fixes #51881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php

    r48937 r49701  
    88                $input    = 'Captain <strong>Awesome</strong>';
    99                $expected = 'captain-awesome';
    10                 $this->assertSame( $expected, sanitize_title( $input ) );
     10                $this->assertSame( $expected, sanitize_title_with_dashes( $input ) );
    1111        }
    1212
Note: See TracChangeset for help on using the changeset viewer.