8
8
* LICENSE.md file that was distributed with this source code.
9
9
*/
10
10
11
+ use FluidTYPO3 \Vhs \Proxy \FileRepositoryProxy ;
11
12
use FluidTYPO3 \Vhs \Proxy \ResourceFactoryProxy ;
12
13
use FluidTYPO3 \Vhs \Tests \Fixtures \Classes \DummyQueryBuilder ;
13
14
use FluidTYPO3 \Vhs \Tests \Unit \ViewHelpers \AbstractViewHelperTest ;
14
15
use FluidTYPO3 \Vhs \Tests \Unit \ViewHelpers \AbstractViewHelperTestCase ;
15
16
use FluidTYPO3 \Vhs \ViewHelpers \Resource \Record \FalViewHelper ;
16
17
use TYPO3 \CMS \Core \Resource \File ;
17
18
use TYPO3 \CMS \Core \Resource \FileReference ;
18
- use TYPO3 \CMS \Core \Resource \FileRepository ;
19
19
use TYPO3 \CMS \Core \Resource \ResourceStorage ;
20
20
21
21
class FalViewHelperTest extends AbstractViewHelperTestCase
@@ -26,7 +26,7 @@ protected function setUp(): void
26
26
->setMethods (['getFileReferenceObject ' ])
27
27
->disableOriginalConstructor ()
28
28
->getMock ();
29
- $ this ->singletonInstances [FileRepository ::class] = $ this ->getMockBuilder (FileRepository ::class)
29
+ $ this ->singletonInstances [FileRepositoryProxy ::class] = $ this ->getMockBuilder (FileRepositoryProxy ::class)
30
30
->setMethods (['findByRelation ' ])
31
31
->disableOriginalConstructor ()
32
32
->getMock ();
@@ -71,7 +71,7 @@ public function testGetResource(): void
71
71
72
72
public function testGetResourcesWhenPageContext (): void
73
73
{
74
- $ this ->singletonInstances [FileRepository ::class]->method ('findByRelation ' )->willReturn ([]);
74
+ $ this ->singletonInstances [FileRepositoryProxy ::class]->method ('findByRelation ' )->willReturn ([]);
75
75
76
76
$ GLOBALS ['TSFE ' ] = (object ) ['sys_page ' => 'foobar ' ];
77
77
0 commit comments