Commit dbea5c21 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

FolderTests: Add a test to blacklist non existant folders

parent 8f9d6319
......@@ -333,6 +333,15 @@ TEST_F( FoldersNoDiscover, BlacklistTwice )
ml->banFolder( mock::FileSystemFactory::SubFolder );
}
TEST_F( FoldersNoDiscover, BlacklistNonExistant )
{
cbMock->prepareForWait();
ml->banFolder( "foo/bar/otters" );
ml->banFolder( "/foo/bar/otters" );
// Ban with an existing base
ml->banFolder( mock::FileSystemFactory::Root + "grouik/" );
}
TEST_F( FoldersNoDiscover, NoMediaBeforeDiscovery )
{
auto newFolder = mock::FileSystemFactory::Root + "newfolder/";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment