Skip to content

Commit d6a0594

Browse files
committed
MAGETWO-31575: Remove black/white lists from file system and builds configuration
- fixed test
1 parent d294739 commit d6a0594

File tree

1 file changed

+10
-11
lines changed
  • dev/tests/unit/testsuite/Magento/Framework/Test/Utility

1 file changed

+10
-11
lines changed

dev/tests/unit/testsuite/Magento/Framework/Test/Utility/FilesTest.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,20 @@ public function testReadListsWrongPattern()
4444
$this->assertSame([], Files::init()->readLists(__DIR__ . '/_files/no_good.txt'));
4545
}
4646

47-
/**
48-
* @expectedException \Exception
49-
* @expectedExceptionMessage The glob() pattern 'bar/unknown' didn't return any result.
50-
*/
5147
public function testReadListsCorruptedDir()
5248
{
53-
Files::init()->readLists(__DIR__ . '/_files/list_corrupted_dir.txt');
49+
$result = Files::init()->readLists(__DIR__ . '/_files/list_corrupted_dir.txt');
50+
51+
foreach ($result as $path) {
52+
$this->assertNotContains('bar/unknown', $path);
53+
}
5454
}
5555

56-
/**
57-
* @expectedException \Exception
58-
* @expectedExceptionMessage The glob() pattern 'unknown.txt' didn't return any result.
59-
*/
6056
public function testReadListsCorruptedFile()
6157
{
62-
Files::init()->readLists(__DIR__ . '/_files/list_corrupted_file.txt');
63-
}
58+
$result = Files::init()->readLists(__DIR__ . '/_files/list_corrupted_file.txt');
59+
60+
foreach ($result as $path) {
61+
$this->assertNotContains('unknown.txt', $path);
62+
} }
6463
}

0 commit comments

Comments
 (0)