AssetManagerTest\Service\AliasPathStackResolverTest::testGetAndSetMimeResolver PHP Method

testGetAndSetMimeResolver() public method

Test Set Mime Resolver Only Accepts a mime Resolver
    public function testGetAndSetMimeResolver()
    {
        $mimeReolver = $this->getMockBuilder(MimeResolver::class)->disableOriginalConstructor()->getMock();
        $resolver = new AliasPathStackResolver(array('my/alias/' => __DIR__));
        $resolver->setMimeResolver($mimeReolver);
        $returned = $resolver->getMimeResolver();
        $this->assertEquals($mimeReolver, $returned);
    }