public function testToOptionArray() { $formatTitle = 'format Title'; $expected = [['label' => $formatTitle, 'value' => 0]]; $this->salesRuleCoupon->expects($this->once())->method('getFormatsList')->will($this->returnValue([$formatTitle])); $this->assertEquals($expected, $this->model->toOptionArray()); }