File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff 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 ' )
You can’t perform that action at this time.
0 commit comments