/** * Isolation level has been raised in order to flush themes configuration in-memory cache * * @magentoAppIsolation enabled */ public function testGetViewUrl() { $this->assertStringStartsWith('http://localhost/pub/media/theme/frontend/', $this->_block->getViewFileUrl()); $this->assertStringEndsWith('css/styles.css', $this->_block->getViewFileUrl('css/styles.css')); /** * File is not exist */ $this->assertStringEndsWith('/core/index/notfound', $this->_block->getViewFileUrl('not_exist_folder/wrong_bad_file.xyz')); }