Make WordPress Core


Ignore:
Timestamp:
11/08/2016 11:49:11 PM (9 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/ms-files-rewriting.php

    r38762 r39173  
    7777
    7878        // The file on the main site should still exist. The file on the deleted site should not.
    79         $this->assertTrue( file_exists( $file1['file'] ) );
    80         $this->assertFalse( file_exists( $file2['file'] ) );
     79        $this->assertFileExists( $file1['file'] );
     80        $this->assertFileNotExists( $file2['file'] );
    8181
    8282        wpmu_delete_blog( $blog_id, true );
    8383
    8484        // The file on the main site should still exist. The file on the deleted site should not.
    85         $this->assertTrue( file_exists( $file1['file'] ) );
    86         $this->assertFalse( file_exists( $file2['file'] ) );
     85        $this->assertFileExists( $file1['file'] );
     86        $this->assertFileNotExists( $file2['file'] );
    8787    }
    8888}
Note: See TracChangeset for help on using the changeset viewer.