public function testResolveCacheMiss() { $this->activeTheme =
$this->
getMockBuilder(ActiveTheme::
class) ->
disableOriginalConstructor() ->
getMock();
$this->themeManager->
expects($this->
exactly(5
)) ->
method('getActiveTheme'
) ->
willReturn($this->activeTheme
);
$this->activeTheme->
expects($this->
once()) ->
method('getName'
) ->
willReturn('kitten_theme'
);
$this->libraryDiscoveryCollector =
new LibraryDiscoveryCollector($this->cache,
$this->lock,
$this->libraryDiscoveryParser,
$this->themeManager
);
$this->libraryDiscoveryParser->
expects($this->
once()) ->
method('buildByExtension'
) ->
with('test'
) ->
willReturn($this->libraryData
);
$this->
assertSame($this->libraryData,
$this->libraryDiscoveryCollector->
get('test'
));
$this->
assertSame($this->libraryData,
$this->libraryDiscoveryCollector->
get('test'
));
} /**
* Tests the destruct method.
*
* @covers ::destruct
*/