Example #1
0
 /**
  * Tests \Magento\Framework\DataObject->__call()
  *
  * @expectedException \Magento\Framework\Exception\LocalizedException
  */
 public function testCall()
 {
     $this->_object->setData('key', 'value');
     $this->_object->setTest('test');
     $this->assertEquals('test', $this->_object->getData('test'));
     $this->assertEquals($this->_object->getData('test'), $this->_object->getTest());
     $this->assertTrue($this->_object->hasTest());
     $this->_object->unsTest();
     $this->assertNull($this->_object->getData('test'));
     $this->_object->testTest();
 }