From ffcfc0573be17c89f84396755e712faaa461e96c Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 8 Nov 2014 21:01:39 +0000 Subject: [PATCH] Remove failing test related to post galleries. It relied on the old _WPDataset technique, which is no longer used. The test has been added to #UT30 as a patch, in case anyone wants to make future use of it. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30285 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/gallery.php | 156 --------------------------- 1 file changed, 156 deletions(-) delete mode 100644 tests/phpunit/tests/post/gallery.php 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)); - } - -}