public function testGetBaseConfig() { $this->context->expects($this->once())->method('getPath')->will($this->returnValue('area/theme/locale')); $this->context->expects($this->once())->method('getBaseUrl')->will($this->returnValue('http://base.url/')); $expected = <<<expected require.config({ "baseUrl": "http://base.url/area/theme/locale", "paths": { "magento": "mage/requirejs/plugin/id-normalizer" }, "waitSeconds": 0 }); expected; $actual = $this->object->getBaseConfig(); $this->assertSame($expected, $actual); }