Skip to content

Commit

Permalink
import fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Sep 14, 2024
1 parent 6e7c811 commit e312255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Actions/Import/Exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private function assertImportNotCancelled(): void
{
try {
// re-read session in case cancelling import was requested
session_start();
Session::start();
if (Session::has('cancel')) {
Session::forget('cancel');
throw new ImportCancelledException();
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature_v1/PhotosAddMethodsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public function testImportViaMove(): void
{
// import the photo
copy(base_path(TestConstants::SAMPLE_FILE_NIGHT_IMAGE), static::importPath('night.jpg'));
$this->assertEquals(true, file_exists(static::importPath('night.jpg')));
$this->photos_tests->importFromServer(
path: static::importPath(),
album_id: null,
delete_imported: true,
skip_duplicates: false,
import_via_symlink: false);

// check if the file has been moved
$this->assertEquals(false, file_exists(static::importPath('night.jpg')));
}
Expand Down

0 comments on commit e312255

Please sign in to comment.