Tests: Simplify some assertions in `phpunit/tests/media.php`.
Correct comments per the documentation standards. Follow-up to [48496]. See #22101. git-svn-id: https://develop.svn.wordpress.org/trunk@48516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e80b4f64bf
commit
fa7b1bbb99
|
@ -2954,7 +2954,7 @@ EOF;
|
|||
|
||||
$this->go_to( '/?feed=rss2' );
|
||||
|
||||
// Default: Links to image attachment page url
|
||||
// Default: Links to image attachment page URL.
|
||||
$actual = gallery_shortcode(
|
||||
array(
|
||||
'ids' => self::$large_id,
|
||||
|
@ -2962,23 +2962,23 @@ EOF;
|
|||
);
|
||||
$this->assertContains( '?attachment_id=', $actual );
|
||||
|
||||
// File: Links to image file url
|
||||
// File: Links to image file URL.
|
||||
$actual = gallery_shortcode(
|
||||
array(
|
||||
'ids' => self::$large_id,
|
||||
'link' => 'file',
|
||||
)
|
||||
);
|
||||
$this->assertTrue( 2 === substr_count( $actual, '.jpg' ) );
|
||||
$this->assertEquals( 2, substr_count( $actual, '.jpg' ) );
|
||||
|
||||
// None: Does not link
|
||||
// None: Does not link.
|
||||
$actual = gallery_shortcode(
|
||||
array(
|
||||
'ids' => self::$large_id,
|
||||
'link' => 'none',
|
||||
)
|
||||
);
|
||||
$this->assertFalse( strpos( $actual, '<a ' ) );
|
||||
$this->assertNotContains( '<a ', $actual );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue