9 use \Magento\Framework\Config\Scope;
25 $this->areaListMock = $this->createPartialMock(\
Magento\Framework\
App\AreaList::class, [
'getCodes']);
26 $this->model =
new Scope($this->areaListMock);
31 $scopeName =
'test_scope';
32 $this->model->setCurrentScope($scopeName);
33 $this->assertEquals($scopeName, $this->model->getCurrentScope());
38 $expectedBalances = [
'primary',
'test_scope'];
39 $this->areaListMock->expects($this->once())
41 ->will($this->returnValue([
'test_scope']));
42 $this->assertEquals($expectedBalances, $this->model->getAllScopes());