You appear to be a bot. Output may be restricted
Description
We need to test the different values for "link" and ensure that "count" and "slider-id" are also set appropriately to avoid warnings.
Usage
Tests_nivo_php::test_bw_format_nivo_attachment();
Parameters
Returns
void
Source
File name: oik-nivo-slider/tests/test-nivo-php.php
Lines:
1 to 16 of 16
function test_bw_format_nivo_attachment() { $this->switch_to_locale( "en_GB" ); $post = $this->dummy_post( 1 ); $attachment = $this->dummy_attachment( $post->ID ); bw_format_nivo_attachment( $attachment, array( "caption" => "n", "link" => "y", "count" => 0, "slider-id" => 1 ) ); bw_format_nivo_attachment( $attachment, array( "caption" => "n", "link" => "file", "count" => 1, "slider-id" => 2 ) ); bw_format_nivo_attachment( $attachment, array( "caption" => "n", "link" => "full", "count" => 2, "slider-id" => 3 ) ); bw_format_nivo_attachment( $attachment, array( "caption" => "n", "link" => "n", "count" => 3, "slider-id" => 4 ) ); $html = bw_ret(); $html = str_replace( $attachment->guid, "screenshot-1.jpg", $html ); $html = $this->replace_home_url( $html ); //$this->generate_expected_file( $html ); $this->assertArrayEqualsFile( $html ); $this->delete_uploaded_files( $attachment ); $this->switch_to_locale( "en_GB" ); }