diff --git a/tests/phpunit/tests/post/gallery.php b/tests/phpunit/tests/post/gallery.php deleted file mode 100644 index d4ece6cf6a..0000000000 --- a/tests/phpunit/tests/post/gallery.php +++ /dev/null @@ -1,156 +0,0 @@ -set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/'); - $wp_rewrite->flush_rules(); - } - - function test_the_content() { - // permalink page - $link = '/2008/04/01/simple-gallery-test/'; - $this->go_to('/2008/04/01/simple-gallery-test/'); - the_post(); - // filtered output - $out = get_echo('the_content'); - $this->assertNotEmpty($out, "Could not get the_content for $link."); - - $expected = <<There are ten images attached to this post.  Here’s a gallery:

- - - - - -

It’s the simplest form of the gallery tag.  All images are from the public domain site burningwell.org.

-

The images have various combinations of titles, captions and descriptions.

-EOF; - $this->assertEquals(strip_ws($expected), strip_ws($out)); - } - - function test_gallery_attributes() { - // make sure the gallery shortcode attributes are parsed correctly - - $id = 575; - $post = get_post($id); - $this->assertNotNull($post, "get_post($id) could not find the post."); - $post->post_content = '[gallery columns="1" size="medium"]'; - wp_update_post($post); - - // permalink page - $this->go_to('/2008/04/01/simple-gallery-test/'); - the_post(); - // filtered output - $out = get_echo('the_content'); - - $expected = << - .gallery { - margin: auto; - } - .gallery-item { - float: left; - margin-top: 10px; - text-align: center; - width: 100%; } - .gallery img { - border: 2px solid #cfcfcf; - } - .gallery-caption { - margin-left: 0; - } - - - - -EOF; - $this->assertEquals(strip_ws($expected), strip_ws($out)); - } - -}