Changeset 51579
- Timestamp:
- 08/07/2021 02:15:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme.php
r51568 r51579 149 149 $this->assertNotEmpty( $theme['Template Files'] ); 150 150 foreach ( $theme['Template Files'] as $file ) { 151 $this->assertTrue( is_file( $dir . $file ) ); 152 $this->assertTrue( is_readable( $dir . $file ) ); 151 $this->assertFileIsReadable( $dir . $file ); 153 152 } 154 153 … … 157 156 $this->assertNotEmpty( $theme['Stylesheet Files'] ); 158 157 foreach ( $theme['Stylesheet Files'] as $file ) { 159 $this->assertTrue( is_file( $dir . $file ) ); 160 $this->assertTrue( is_readable( $dir . $file ) ); 158 $this->assertFileIsReadable( $dir . $file ); 161 159 } 162 160 … … 166 164 $this->assertSame( 'publish', $theme['Status'] ); 167 165 168 $this->assertTrue( is_file( $dir . $theme['Stylesheet Dir'] . '/' . $theme['Screenshot'] ) ); 169 $this->assertTrue( is_readable( $dir . $theme['Stylesheet Dir'] . '/' . $theme['Screenshot'] ) ); 166 $this->assertFileIsReadable( $dir . $theme['Stylesheet Dir'] . '/' . $theme['Screenshot'] ); 170 167 } 171 168 }
Note: See TracChangeset
for help on using the changeset viewer.