Beispiel #1
0
 public function testGetGlobal()
 {
     $widgetConfigs = $this->_object->get('widget.xml', 'global');
     $expected = str_replace('\\', '/', realpath(__DIR__ . '/_files/code/Magento/Test/etc/widget.xml'));
     $actual = $widgetConfigs->key();
     $this->assertCount(1, $widgetConfigs);
     $this->assertStringEndsWith($actual, $expected);
 }
Beispiel #2
0
 public function testGetDefault()
 {
     $expected = new \StdClass();
     $this->factory->expects($this->once())->method('create')->with($this->themesDir, [])->willReturn($expected);
     $this->assertSame($expected, $this->object->get('file', 'unknown'));
 }