Make WordPress Core


Ignore:
Timestamp:
11/08/2016 11:49:11 PM (10 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Utilise assertFileExists() and assertFileNotExists() in more places.

See #38716

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/site.php

    r38935 r39173  
    286286
    287287                // The file on the main site should still exist. The file on the deleted site should not.
    288                 $this->assertTrue( file_exists( $file1['file'] ) );
    289                 $this->assertFalse( file_exists( $file2['file'] ) );
     288                $this->assertFileExists( $file1['file'] );
     289                $this->assertFileNotExists( $file2['file'] );
    290290
    291291                wpmu_delete_blog( $blog_id, true );
    292292
    293293                // The file on the main site should still exist. The file on the deleted site should not.
    294                 $this->assertTrue( file_exists( $file1['file'] ) );
    295                 $this->assertFalse( file_exists( $file2['file'] ) );
     294                $this->assertFileExists( $file1['file'] );
     295                $this->assertFileNotExists( $file2['file'] );
    296296        }
    297297
Note: See TracChangeset for help on using the changeset viewer.