fix: test item blurhash

This commit is contained in:
vnmedeiros 2021-07-14 12:57:37 -03:00
parent 9d25d30f94
commit eb7b156c10
1 changed files with 1 additions and 2 deletions

View File

@ -517,11 +517,10 @@ class Items extends TAINACAN_UnitTestCase {
}
function test_item_blurhash() {
$item = new Entities\Item();
$orig_file = './tests/attachment/tainacan.jpg';
$test_file = '/tmp/tainacan.jpg';
copy( $orig_file, $test_file );
$blurhash = $item->get_image_blurhash($test_file, 40,40);
$blurhash = \Tainacan\Media::get_instance()->get_image_blurhash($test_file, 40,40);
$this->assertContains($blurhash, ['V4P?:h00Rj~qM{of%MRjWBRjD%%MRjayofj[%M-;RjRj', 'LATI:i~qNG~W~qNGxaNGM|xaNGxa']);
}