Make WordPress Core

Ticket #38264: 38264.2.patch

File 38264.2.patch, 1.0 KB (added by atanasangelovdev, 4 years ago)

Refreshed patch with fix for Tests_Post_Thumbnail_Template as well

  • tests/phpunit/tests/media.php

     
    2020                $GLOBALS['_wp_additional_image_sizes'] = self::$_sizes;
    2121        }
    2222
     23        public static function tearDownAfterClass() {
     24                wp_delete_post( self::$large_id, true );
     25                parent::tearDownAfterClass();
     26        }
     27
    2328        function setUp() {
    2429                parent::setUp();
    2530                $this->caption = 'A simple caption.';
  • tests/phpunit/tests/post/thumbnails.php

     
    2222                ) );
    2323        }
    2424
     25        public static function tearDownAfterClass() {
     26                wp_delete_post( self::$attachment_id, true );
     27                parent::tearDownAfterClass();
     28        }
     29
    2530        function test_has_post_thumbnail() {
    2631                $this->assertFalse( has_post_thumbnail( self::$post ) );
    2732                $this->assertFalse( has_post_thumbnail( self::$post->ID ) );