WordPress.org

Plugin Directory

Changeset 547356


Ignore:
Timestamp:
05/22/12 08:57:32 (2 years ago)
Author:
nbachiyski
Message:

Sync Ice settings keys with tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ice/branches/dev/tests/test-ice-span-filter.php

    r545690 r547356  
    44class Test_ICE_Span_Filter extends PHPUnit_Framework_TestCase { 
    55 
    6     var $tracking_classes = array( 'ins' => 'ice-wp-ins', 'del' => 'ice-wp-del' ); 
     6    var $ice_settings = array( 'deleteClass' => 'ice-wp-del', 'insertClass' => 'ice-wp-ins' ); 
    77 
    88    function filter( $text ) { 
    9         $span_filter = new ICE_Span_Filter( $text, $this->tracking_classes ); 
     9        $span_filter = new ICE_Span_Filter( $text, $this->ice_settings ); 
    1010        return $span_filter->filter(); 
    1111    } 
    1212 
    1313    function get_tokens( $text ) { 
    14         $span_filter = new ICE_Span_Filter( $text, $this->tracking_classes ); 
     14        $span_filter = new ICE_Span_Filter( $text, $this->ice_settings ); 
    1515        return $span_filter->get_tokens(); 
    16     } 
    17  
    18     function test_construct() { 
    19         $span_filter = new ICE_Span_Filter( 'baba', array( 'ins' => 'ins', 'del' => 'del' ) ); 
    2016    } 
    2117 
Note: See TracChangeset for help on using the changeset viewer.