Skip to content

Commit

Permalink
test: fix expected path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckadams committed Jan 18, 2025
1 parent f6bd762 commit 0a632fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/Feature/API/WpOrg/DownloadAssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,14 @@
'https://ps.w.org/test-plugin/assets/screenshot-1.png'
);

$path = 'assets/plugin/test-plugin/screenshot-1.png';
expect($job->generateLocalPath())->toBe($path);

$job->handle();

// Assert
Storage::disk('s3')->assertExists('assets/test-plugin/screenshot-1.png');
expect(Storage::disk('s3')->get('assets/test-plugin/screenshot-1.png'))
Storage::disk('s3')->assertExists($path);
expect(Storage::disk('s3')->get($path))
->toBe($imageContent);
});

Expand Down

0 comments on commit 0a632fc

Please sign in to comment.