Skip to content

Commit d88d70a

Browse files
committed
Remove test for removed arg to pathLooksCrawlable
1 parent 9a28470 commit d88d70a

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/unit/FileHelperTest.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -272,32 +272,6 @@ public function testPathLooksCrawlableExtension() {
272272
$this->assertEquals( $expected, $actual );
273273
}
274274

275-
/**
276-
* Test pathLooksCrawlable method's $filenames_to_ignore argument
277-
* filter.
278-
*
279-
* @return void
280-
*/
281-
public function testPathLooksCrawlableFilenames() {
282-
$looks_crawlable = function ( $file_name ) {
283-
return FilesHelper::pathLooksCrawlable(
284-
$file_name,
285-
[ 'yarn.lock' ],
286-
[]
287-
);
288-
};
289-
290-
// We've disallowed yarn.lock - test it
291-
$expected = false;
292-
$actual = $looks_crawlable( '/path/to/yarn.lock' );
293-
$this->assertEquals( $expected, $actual );
294-
295-
// thumbs.db filenames should now be allowed - test it
296-
$expected = true;
297-
$actual = $looks_crawlable( '/path/to/thumbs.db' );
298-
$this->assertEquals( $expected, $actual );
299-
}
300-
301275
public function testCleanDetectedURLs() {
302276
// Mock the WP functions used by FilesHelper::cleanDetectedURLs()
303277
$mock = \Mockery::mock( 'alias:WP2Static\SiteInfo' )

0 commit comments

Comments
 (0)