public function testAddInterpreter() { $input = ['interpreter' => 'new', 'value' => 'test']; $newInterpreter = $this->getMock('Magento\\Framework\\Data\\Argument\\InterpreterInterface'); $this->_model->addInterpreter('new', $newInterpreter); $newInterpreter->expects($this->once())->method('evaluate')->with(['value' => 'test']); $this->_model->evaluate($input); }