base_path().'/tests/fixtures/backend/reference/file1.txt', 'is_public' => false, ]); $file2 = FileModel::create([ 'data' => base_path().'/tests/fixtures/backend/reference/file2.txt', 'is_public' => false, ]); $model->import_file()->add($file1, $sessionKey); $model->import_file()->add($file2, $sessionKey); $this->assertEquals( $file2->getLocalPath(), $model->getImportFilePath($sessionKey), 'ImportModel::getImportFilePath() should return the last uploaded file.' ); } }