Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ANKUR DWIVEDI authored and ANKUR DWIVEDI committed Mar 11, 2024
1 parent 34c7690 commit 7df7a3c
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions tests/ImageKit/Url/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,7 @@ public function testUrlSignedWithDiacriticInFilename()
'expireSeconds' => ''
]);
UrlTest::assertEquals(
'https://ik.imagekit.io/demo/test_é_path_alt.jpg?ik-s=f5575cb3dcd9a5aa2a8871bf6964cbc896a26afc',
$url
);
UrlTest::assertContains(
'ik-s=' . $signature,
'https://ik.imagekit.io/demo/test_é_path_alt.jpg?ik-s='. $signature,
$url
);
}
Expand Down Expand Up @@ -323,11 +319,7 @@ public function testUrlSignedWithDiacriticInFilenameAndPath()
'expireSeconds' => ''
]);
UrlTest::assertEquals(
'https://ik.imagekit.io/demo/aéb/test_é_path_alt.jpg?ik-s=e8a198ccd5d82841f31455a4e7a908d8c07cb21d',
$url
);
UrlTest::assertContains(
'ik-s=' . $signature,
'https://ik.imagekit.io/demo/aéb/test_é_path_alt.jpg?ik-s='. $signature,
$url
);
}
Expand Down Expand Up @@ -361,11 +353,7 @@ public function testUrlSignedWithDiacriticInFilenamePathTransforamtionInPath()
'expireSeconds' => ''
]);
UrlTest::assertEquals(
'https://ik.imagekit.io/demo/tr:l-text,i-Imagekité,fs-50,l-end/aéb/test_é_path_alt.jpg?ik-s=62f5cc82fa070614c6b70e7a42fc5171cdf41a1f',
$url
);
UrlTest::assertContains(
'ik-s=' . $signature,
'https://ik.imagekit.io/demo/tr:l-text,i-Imagekité,fs-50,l-end/aéb/test_é_path_alt.jpg?ik-s='. $signature,
$url
);
}
Expand Down Expand Up @@ -399,11 +387,7 @@ public function testUrlSignedWithDiacriticInFilenamePathTransforamtionInQuery()
'expireSeconds' => ''
]);
UrlTest::assertEquals(
'https://ik.imagekit.io/demo/aéb/test_é_path_alt.jpg?tr=l-text,i-Imagekité,fs-50,l-end&ik-s=7656092e837af64427a757ef12d16b6fde1ce152',
$url
);
UrlTest::assertContains(
'ik-s=' . $signature,
'https://ik.imagekit.io/demo/aéb/test_é_path_alt.jpg?tr=l-text,i-Imagekité,fs-50,l-end&ik-s='. $signature,
$url
);
}
Expand Down

0 comments on commit 7df7a3c

Please sign in to comment.