Beispiel #1
0
 public function testGetStorageDatabaseModel()
 {
     $dbModelMock = $this->getMockBuilder('Magento\\Core\\Model\\File\\Storage\\Database')->disableOriginalConstructor()->getMock();
     $this->dbStorageFactoryMock->expects($this->once())->method('create')->will($this->returnValue($dbModelMock));
     $this->assertSame($dbModelMock, $this->helper->getStorageDatabaseModel());
     $this->assertSame($dbModelMock, $this->helper->getStorageDatabaseModel());
 }