Example #1
0
 /**
  * Tests \Magento\Framework\DataObject->toString()
  */
 public function testToString()
 {
     $this->_object->setData('key1', 'value1');
     $this->_object->setData('key2', 'value2');
     $this->assertEquals('value1, value2', $this->_object->toString());
     $this->assertEquals('test value1 with value2', $this->_object->toString('test {{key1}} with {{key2}}'));
 }