Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function it_can_find_a_thumbnail() |
||
37 | { |
||
38 | $expected = [ |
||
39 | 'resize' => [ |
||
40 | 'width' => 180, |
||
41 | 'height' => null, |
||
42 | 'callback' => function ($constraint) { |
||
43 | $constraint->aspectRatio(); |
||
44 | $constraint->upsize(); |
||
45 | }, |
||
46 | ], |
||
47 | ]; |
||
48 | |||
49 | $this->assertEquals($expected, $this->thumbnailManager->find('mediumThumb')); |
||
50 | } |
||
51 | } |
||
52 |