This repository was archived by the owner on Mar 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
tests/TestCase/View/Helper Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,18 @@ public function testImage() {
85
85
EventManager::instance ()->on ($ this ->listeners ['LegacyLocalFileStorageListener ' ]);
86
86
87
87
$ result = $ this ->Image ->display ($ image , 't150 ' );
88
- $ this ->assertEquals ($ result , '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.c3f33c2a.jpg" alt=""/> ' );
88
+ if (PHP_INT_SIZE === 8 ) {
89
+ $ this ->assertEquals ($ result , '<img src="/img/images/10/21/10/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.c3f33c2a.jpg" alt=""/> ' );
90
+ } else {
91
+ $ this ->assertEquals ($ result , '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.c3f33c2a.jpg" alt=""/> ' );
92
+ }
89
93
90
94
$ result = $ this ->Image ->display ($ image );
91
- $ this ->assertEquals ($ result , '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/> ' );
95
+ if (PHP_INT_SIZE === 8 ) {
96
+ $ this ->assertEquals ($ result , '<img src="/img/images/10/21/10/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/> ' );
97
+ } else {
98
+ $ this ->assertEquals ($ result , '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/> ' );
99
+ }
92
100
93
101
// Testing the LocalListener
94
102
$ this ->_removeListeners ();
You can’t perform that action at this time.
0 commit comments