/** * @test */ public function resourceRepositoryCanBeSet() { $repo = $this->prophesize('Xi\\Filelib\\Resource\\ResourceRepositoryInterface')->reveal(); $filelib = new FileLibrary($this->getMockedStorageAdapter(), $this->getMockedBackendAdapter()); $filelib->setResourceRepository($repo); $this->assertSame($repo, $filelib->getResourceRepository()); }
public function setUp() { $this->ed = $this->prophesize('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface'); $this->filelib = $this->getFilelib(true); $this->op = $this->filelib->getResourceRepository(); }