You appear to be a bot. Output may be restricted
Description
Usage
Tests_Attachment_Slashes::setUp();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/attachment/slashes.php
Lines:
1 to 16 of 16
function setUp() { parent::setUp(); $this->author_id = self::factory()->user->create( array( 'role' => 'editor' ) ); wp_set_current_user( $this->author_id ); // it is important to test with both even and odd numbered slashes as // kses does a strip-then-add slashes in some of its function calls $this->slash_1 = 'String with 1 slash \\'; $this->slash_2 = 'String with 2 slashes \\\\'; $this->slash_3 = 'String with 3 slashes \\\\\\'; $this->slash_4 = 'String with 4 slashes \\\\\\\\'; $this->slash_5 = 'String with 5 slashes \\\\\\\\\\'; $this->slash_6 = 'String with 6 slashes \\\\\\\\\\\\'; $this->slash_7 = 'String with 7 slashes \\\\\\\\\\\\\\'; }