Skip to content
This repository was archived by the owner on Jan 5, 2018. It is now read-only.

Commit 4ada563

Browse files
author
Milos Dencev
committed
Removed unnecessary comments.
1 parent 55cb38d commit 4ada563

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Tests/FileEntityCreationTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,13 @@ public function testArchiveUpload() {
168168

169169
$this->assertText('Extracted archive.tar.gz and added 1 new files.');
170170

171-
// Files that match the pattern can be found in the database.
172171
$this->assertTrue($file = !empty($file_storage->loadByProperties(['filename' => 'test_jpg.jpg'])), "File that matches the pattern can be found in the database.");
173-
// Files that match the pattern should be permanent.
174172
$this->assertTrue($file ? $this->getFileByFilename('test_jpg.jpg')->isPermanent() : FALSE, "File that matches the pattern is permanent.");
175-
// Files that don't match the pattern are not in the database.
176173
$this->assertFalse(!empty($file_storage->loadByProperties(['filename' => 'test_png.png'])), "File that doesn't match the pattern is not in the database.");
177174
$this->assertFalse(!empty($file_storage->loadByProperties(['filename' => 'test_text.txt'])), "File that doesn't match the pattern is not in the database.");
178-
// Archive is removed since we checked the remove_archive checkbox.
179175
$this->assertFalse(!empty($file_storage->loadByProperties(['filename' => 'archive.tar.gz'])), "Archive is removed since we checked the remove_archive checkbox.");
180176

181177
$all_files = file_scan_directory('public://', '/.*/');
182-
// Only files that match the pattern are in the public directory.
183178
$this->assertTrue(array_key_exists('public://archive.tar/' . $jpg_file_path, $all_files), "File that matches the pattern is in the public directory.");
184179
$this->assertFalse(array_key_exists('public://archive.tar/' . $png_file_path, $all_files), "File that doesn't match the pattern is removed from the public directory.");
185180
$this->assertFalse(array_key_exists('public://archive.tar/' . $text_file_path, $all_files), "File that doesn't match the pattern is removed from the public directory.");
@@ -196,9 +191,7 @@ public function testArchiveUpload() {
196191
$this->drupalGet('admin/content/files/archive');
197192
$this->drupalPostForm(NULL, $edit, t('Submit'));
198193

199-
// Archive is in the database since value for remove_checkbox is FALSE.
200194
$this->assertTrue($file = !empty($file_storage->loadByProperties(['filename' => 'archive2.tar.gz'])), "Archive is in the database since value for remove_checkbox is FALSE.");
201-
// Check if the archive is set to permanent.
202195
$this->assertTrue($file ? $this->getFileByFilename('archive2.tar.gz')->isPermanent() : FALSE, "Archive is permanent since value for remove_checkbox is FALSE.");
203196

204197
$all_files = file_scan_directory('public://', '/.*/');

0 commit comments

Comments
 (0)