| @@ 52-71 (lines=20) @@ | ||
| 49 | return new Prefix($prefix); |
|
| 50 | } |
|
| 51 | ||
| 52 | public function provideData() |
|
| 53 | { |
|
| 54 | return array( |
|
| 55 | array( |
|
| 56 | 'images/file.png', |
|
| 57 | 'var/storage', |
|
| 58 | 'var/storage/images/file.png', |
|
| 59 | ), |
|
| 60 | array( |
|
| 61 | 'images/file.png', |
|
| 62 | 'var/storage/', |
|
| 63 | 'var/storage/images/file.png', |
|
| 64 | ), |
|
| 65 | array( |
|
| 66 | 'images/file.png', |
|
| 67 | 'http://static.example.com', |
|
| 68 | 'http://static.example.com/images/file.png', |
|
| 69 | ), |
|
| 70 | ); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||
| @@ 208-216 (lines=9) @@ | ||
| 205 | * |
|
| 206 | * @return array |
|
| 207 | */ |
|
| 208 | public function removeAlwaysAvailableFlagProvider() |
|
| 209 | { |
|
| 210 | return array( |
|
| 211 | array(3, 2), |
|
| 212 | array(7, 6), |
|
| 213 | array(14, 14), |
|
| 214 | array(62, 62), |
|
| 215 | ); |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|
| 219 | * @param int $langMask |
|
| @@ 715-723 (lines=9) @@ | ||
| 712 | $this->assertUsagesSearchResultItems($usagesSearchResults, $expectedContentInfos); |
|
| 713 | } |
|
| 714 | ||
| 715 | public function dataProviderForFindUsages() |
|
| 716 | { |
|
| 717 | return [ |
|
| 718 | // findUsages($url, 0, -1) |
|
| 719 | [23, 0, -1, [54], 1], |
|
| 720 | // findUsages($url, 0, $limit) |
|
| 721 | [23, 0, 1, [54], 1], |
|
| 722 | ]; |
|
| 723 | } |
|
| 724 | ||
| 725 | /** |
|
| 726 | * Test for URLService::testFindUsages() method. |
|
| @@ 131-138 (lines=8) @@ | ||
| 128 | $this->assertSame($image, $loader->load($image, $options)); |
|
| 129 | } |
|
| 130 | ||
| 131 | public function loadProvider() |
|
| 132 | { |
|
| 133 | return array( |
|
| 134 | array(10, 10, '#fff'), |
|
| 135 | array(5, 5, '#5dcb4f'), |
|
| 136 | array(50, 50, '#fa1629'), |
|
| 137 | ); |
|
| 138 | } |
|
| 139 | } |
|
| 140 | ||