Skip to content

Commit fe2748d

Browse files
committed
Update TransloaditTest.php
1 parent 61b2f64 commit fe2748d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/simple/TransloaditTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public function testSignedSmartCDNUrl() {
153153
]);
154154

155155
// Test basic URL generation
156-
$url = $transloadit->signedSmartCDNUrl('workspace', 'template', '');
157-
$this->assertStringStartsWith('https://workspace.tlcdn.com/template/', $url);
156+
$url = $transloadit->signedSmartCDNUrl('workspace', 'template', 'file.jpg');
157+
$this->assertStringStartsWith('https://workspace.tlcdn.com/template/file.jpg', $url);
158158
$this->assertStringContainsString('auth_key=test-key', $url);
159159
$this->assertStringContainsString('sig=sha256%3A', $url);
160160

@@ -163,14 +163,14 @@ public function testSignedSmartCDNUrl() {
163163
$this->assertStringStartsWith('https://workspace.tlcdn.com/template/input.jpg', $url);
164164

165165
// Test with additional params
166-
$url = $transloadit->signedSmartCDNUrl('workspace', 'template', '', ['width' => 100]);
166+
$url = $transloadit->signedSmartCDNUrl('workspace', 'template', 'file.jpg', ['width' => 100]);
167167
$this->assertStringContainsString('width=100', $url);
168168

169169
// Test with custom sign props
170170
$url = $transloadit->signedSmartCDNUrl(
171171
'workspace',
172172
'template',
173-
'',
173+
'file.jpg',
174174
[],
175175
['authKey' => 'custom-key', 'authSecret' => 'custom-secret', 'expiryMs' => 60000]
176176
);

0 commit comments

Comments
 (0)