Make WordPress Core

Changeset 903 in tests for trunk/tests/test_includes_media.php


Ignore:
Timestamp:
07/16/2012 05:24:25 PM (14 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_includes_media.php

    r883 r903  
    3030
    3131  function test_img_caption_shortcode_with_old_format() {
    32     $result = img_caption_shortcode( 
    33       array( 'width' => 20, 'caption' => $this->caption ) 
     32    $result = img_caption_shortcode(
     33      array( 'width' => 20, 'caption' => $this->caption )
    3434    );
    3535    $this->assertEquals( 2, preg_match_all( '/wp-caption/', $result, $_r ) );
     
    4040
    4141  function test_img_caption_shortcode_with_old_format_id_and_align() {
    42     $result = img_caption_shortcode( 
    43       array( 
     42    $result = img_caption_shortcode(
     43      array(
    4444        'width' => 20,
    4545        'caption' => $this->caption,
     
    5454
    5555  function test_new_img_caption_shortcode_with_html_caption() {
    56     $result = img_caption_shortcode( 
    57       array( 'width' => 20, 'caption' => $this->html_content ) 
     56    $result = img_caption_shortcode(
     57      array( 'width' => 20, 'caption' => $this->html_content )
    5858    );
    5959    $our_preg = preg_quote( $this->html_content );
     
    6363
    6464  function test_new_img_caption_shortcode_new_format() {
    65     $result = img_caption_shortcode( 
     65    $result = img_caption_shortcode(
    6666      array( 'width' => 20 ),
    6767      $this->img_content . $this->html_content
     
    7676  function test_new_img_caption_shortcode_new_format_and_linked_image() {
    7777    $linked_image = "<a href='#'>{$this->img_content}</a>";
    78     $result = img_caption_shortcode( 
     78    $result = img_caption_shortcode(
    7979      array( 'width' => 20 ),
    8080      $linked_image . $this->html_content
     
    8989  function test_new_img_caption_shortcode_new_format_and_linked_image_with_newline() {
    9090    $linked_image = "<a href='#'>{$this->img_content}</a>";
    91     $result = img_caption_shortcode( 
     91    $result = img_caption_shortcode(
    9292      array( 'width' => 20 ),
    9393      $linked_image . "\n\n" . $this->html_content
Note: See TracChangeset for help on using the changeset viewer.