Make WordPress Core

Ticket #19278: 19278.2.diff

File 19278.2.diff, 749 bytes (added by SergeyBiryukov, 4 years ago)
  • tests/phpunit/tests/admin/includesListTable.php

     
    375375                $table->bulk_actions();
    376376                $output = ob_get_clean();
    377377
    378                 $this->assertContains(
    379                         <<<'OPTIONS'
     378                $expected = <<<'OPTIONS'
    380379<option value="delete">Delete</option>
    381380        <optgroup label="Change State">
    382381                <option value="feature">Featured</option>
    383382                <option value="sale">On Sale</option>
    384383        </optgroup>
    385 OPTIONS
    386                         ,
    387                         $output
    388                 );
     384OPTIONS;
     385                $expected = str_replace( "\r\n", "\n", $expected );
     386
     387                $this->assertContains( $expected, $output );
    389388        }
    390389
    391390        /**