Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
const-cloudinary committed Jan 14, 2025
1 parent 27f22ae commit 0a4befa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Unit/Asset/AssetTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,35 +131,35 @@ protected static function assertImageUrl(
/**
* @param $expectedPath
* @param $actualUrl
* @param null $message
* @param string $message
* @param string $customDeliveryType
*/
protected static function assertVideoUrl(
$expectedPath,
$actualUrl,
$message = null,
$message = '',
$customDeliveryType = DeliveryType::UPLOAD
) {
$expectedPath = AssetType::VIDEO . "/$customDeliveryType/$expectedPath";

self::assertAssetUrl($expectedPath, $actualUrl, $message);
self::assertAssetUrl($expectedPath, $actualUrl, ['message' => $message]);
}

/**
* @param $expectedPath
* @param $actualUrl
* @param null $message
* @param string $message
* @param string $customDeliveryType
*/
protected static function assertFileUrl(
$expectedPath,
$actualUrl,
$message = null,
$message = '',
$customDeliveryType = DeliveryType::UPLOAD
) {
$expectedPath = AssetType::RAW . "/$customDeliveryType/$expectedPath";

self::assertAssetUrl($expectedPath, $actualUrl, $message);
self::assertAssetUrl($expectedPath, $actualUrl, ['message' => $message]);
}

/**
Expand Down

0 comments on commit 0a4befa

Please sign in to comment.